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"
|
||||
GATracker = "XYZ"
|
||||
GitHub = "//github.com/you"
|
||||
HighlightJS = true
|
||||
Initials = "ad" # Displayed on single post page; DEPRECATED in v0.3.0.
|
||||
Lang = "en"
|
||||
LinkedIn = "//linkedin.com/in/you"
|
||||
|
@@ -13,9 +13,9 @@ try {
|
||||
{{ end }}
|
||||
|
||||
{{ 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">
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user