From b2198b31e1be7a306eae121102ee2f536f6c5180 Mon Sep 17 00:00:00 2001 From: Gardient Date: Sun, 18 Feb 2018 13:01:21 +0200 Subject: [PATCH] fix default pre and code style, fix hljs --- layouts/partials/head.html | 2 +- layouts/partials/javascript.html | 2 +- static/css/hugo-bootswatch-slate.css | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3d609fb..e9681df 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -8,7 +8,7 @@ - + diff --git a/layouts/partials/javascript.html b/layouts/partials/javascript.html index 6ddeb48..a796c78 100644 --- a/layouts/partials/javascript.html +++ b/layouts/partials/javascript.html @@ -1,9 +1,9 @@ {{ with .Site.Params.highlightjs }} + {{ range $.Site.Params.highlightjs_extra_languages }} {{ end }} - {{ end }} diff --git a/static/css/hugo-bootswatch-slate.css b/static/css/hugo-bootswatch-slate.css index b4cf85f..9639156 100644 --- a/static/css/hugo-bootswatch-slate.css +++ b/static/css/hugo-bootswatch-slate.css @@ -1,3 +1,13 @@ body.navbar-fixed-top { padding-top: 4.5rem } + +pre { + color: var(--light); + background-color: var(--gray-dark); +} + +pre code { + display: block; + padding: 0.5rem; +}