mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
ALH: Update example config file to include highlight js
This commit is contained in:
@@ -25,6 +25,7 @@ Email = "you@example.space"
|
|||||||
FaviconFile = "img/leaf.ico"
|
FaviconFile = "img/leaf.ico"
|
||||||
GATracker = "XYZ"
|
GATracker = "XYZ"
|
||||||
GitHub = "//github.com/you"
|
GitHub = "//github.com/you"
|
||||||
|
HighlightJS = true
|
||||||
Initials = "ad" # Displayed on single post page; DEPRECATED in v0.3.0.
|
Initials = "ad" # Displayed on single post page; DEPRECATED in v0.3.0.
|
||||||
Lang = "en"
|
Lang = "en"
|
||||||
LinkedIn = "//linkedin.com/in/you"
|
LinkedIn = "//linkedin.com/in/you"
|
||||||
|
@@ -13,9 +13,9 @@ try {
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.HighlightJS }}
|
{{ if .Site.Params.HighlightJS }}
|
||||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
hljs.initHighlightingOnLoad();
|
hljs.initHighlightingOnLoad();
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user