diff options
author | Sergey Popov <sergobot@protonmail.com> | 2016-11-20 19:01:53 +0300 |
---|---|---|
committer | Sergey Popov <sergobot@protonmail.com> | 2016-11-20 19:01:53 +0300 |
commit | 841c79ac3f98464c518d5f91be6e674dedfd3b51 (patch) | |
tree | e3d81e29956647dcedb0c7d649781fd8500de976 | |
parent | 2bbf82312066a3a6392f8dad6a5f1a07aa087efa (diff) |
Fix highlightJS in self-built hugo
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -113,7 +113,7 @@ These settings for extra features that this site uses. - `copyright`: Add a copyright statement to the bottom of the theme. eg. `© 2016. Erlich Bachman. [Some Rights Reserved](http://creativecommons.org/licenses/by/3.0/)."` - `poweredBy`: Help promote this theme and give the authors credit. eg. `true` or `false`. -- `highlightJS`: Use highlightJS to highlight code on your site. eg. `true` or `false`. +- `highlightjs`: Use highlightJS to highlight code on your site. eg. `true` or `false`. ### Main Menu `[[menu.main]]` diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2dd55c5..34912bb 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -46,7 +46,7 @@ email = "you@example.com" [params.extra] copyright = "© 2016. Erlich Bachman. [Some Rights Reserved](http://creativecommons.org/licenses/by/3.0/)." poweredBy = true -highlightJS = true +highlightjs = true ## Main Menu [[menu.main]] diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index d96903e..783c232 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,7 +3,7 @@ </div> {{ with .Site.Params.extra }} -{{ if .highlightJS }} +{{ if .highlightjs }} <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script> <script type="text/javascript"> hljs.initHighlightingOnLoad(); diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 480685e..0a67ff5 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -21,7 +21,7 @@ <link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> {{ end }} -{{ if .Site.Params.extra.highlightJS }} +{{ if .Site.Params.extra.highlightjs }} <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css"> {{ end }} |