diff options
author | Aos <aosdab@gmail.com> | 2017-12-11 02:11:16 +0300 |
---|---|---|
committer | Aos <aosdab@gmail.com> | 2017-12-11 02:11:16 +0300 |
commit | 69196798e50f43c4310ec5090be8ff9f1922db19 (patch) | |
tree | 5cd3138a4f14bfb785a718178861dd0ade91dd1a | |
parent | 3411e81831691cb99f1bcc10fcb91c03060cb30f (diff) |
Modified header and footer to put highlightjs in footer
-rwxr-xr-x | layouts/partials/footer.html | 5 | ||||
-rw-r--r-- | layouts/partials/header.html | 13 |
2 files changed, 10 insertions, 8 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 39af978..a3c2b23 100755 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -38,6 +38,11 @@ <div class="pure-u-1-24 pure-u-md-1-6"></div> </div> + +<!--- highlight js --> +<script src="{{ .Site.BaseURL }}highlight/highlight.pack.js"></script> +<script>hljs.initHighlightingOnLoad();</script> + <script type="text/javascript"> go(); window.addEventListener('resize', go); diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 98318e5..e46d68a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -25,19 +25,16 @@ <!--<![endif]--> <link rel="stylesheet" href="{{ .Site.BaseURL }}css/custom.css"> - <!-- RSS Feed --> - {{ if .RSSLink }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }} Feed" /> - {{ end }} - - <!--- highlight js --> {{ if .Site.Params.highlight }} <link rel="stylesheet" href="{{ .Site.BaseURL }}highlight/styles/{{ .Site.Params.highlight }}.css"> {{ else }} <link rel="stylesheet" href="{{ .Site.BaseURL }}highlight/styles/default.css"> {{ end }} - <script src="{{ .Site.BaseURL }}highlight/highlight.pack.js"></script> - <script>hljs.initHighlightingOnLoad();</script> + + <!-- RSS Feed --> + {{ if .RSSLink }} + <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }} Feed" /> + {{ end }} {{ .Hugo.Generator }} |