From 099aca03cbf0f2b85e9f0bf3ac4f69fae4d04517 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 10 May 2016 01:57:53 +0100 Subject: [PATCH] Add code highlight CSS locally for increased speed and ease of overriding highlighting style --- layouts/partials/header.html | 6 +++--- static/css/highlight.min.css | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 static/css/highlight.min.css diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 0f04effc..943e65d2 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -10,13 +10,13 @@ {{ with .Site.Params.name }}{{ end }} {{ with .Site.Params.role }}{{ end }} - + - - + + {{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }} diff --git a/static/css/highlight.min.css b/static/css/highlight.min.css new file mode 100644 index 00000000..5477a1b9 --- /dev/null +++ b/static/css/highlight.min.css @@ -0,0 +1 @@ +.hljs{display:block;overflow-x:auto;padding:0.5em;color:#333;background:#f8f8f8}.hljs-comment,.hljs-quote{color:#998;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#333;font-weight:bold}.hljs-number,.hljs-literal,.hljs-variable,.hljs-template-variable,.hljs-tag .hljs-attr{color:#008080}.hljs-string,.hljs-doctag{color:#d14}.hljs-title,.hljs-section,.hljs-selector-id{color:#900;font-weight:bold}.hljs-subst{font-weight:normal}.hljs-type,.hljs-class .hljs-title{color:#458;font-weight:bold}.hljs-tag,.hljs-name,.hljs-attribute{color:#000080;font-weight:normal}.hljs-regexp,.hljs-link{color:#009926}.hljs-symbol,.hljs-bullet{color:#990073}.hljs-built_in,.hljs-builtin-name{color:#0086b3}.hljs-meta{color:#999;font-weight:bold}.hljs-deletion{background:#fdd}.hljs-addition{background:#dfd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold} \ No newline at end of file