Merge 5046967a61
into 80fe1bf4a9
This commit is contained in:
commit
dee985841a
|
@ -2,6 +2,7 @@
|
|||
<html lang="{{ .Site.LanguageCode }}">
|
||||
{{ block "header" . }}{{ end }}
|
||||
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
|
||||
{{ partial "body/custom.html" . }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
<div class="content container">
|
||||
{{ block "content" . }}{{ end }}
|
||||
|
|
|
@ -36,9 +36,5 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
{{ if .Site.GoogleAnalytics }}
|
||||
<!-- Google Analytics -->
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "footer/font-awesome-js.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{{ if .Site.GoogleAnalytics }}
|
||||
<!-- Google Analytics -->
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "footer/font-awesome-js.html" . }}
|
||||
{{ partial "footer/custom.html" . }}
|
|
@ -7,12 +7,12 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/languages/{{.}}.min.js"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<script type="text/javascript">
|
||||
{{ with $.Scratch.Get "hl_languages" }}
|
||||
hljs.configure({languages: [{{(delimit . ", ")}}]});
|
||||
{{ end }}
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
{{ end }}
|
||||
<script type="text/javascript">
|
||||
{{ with $.Scratch.Get "hl_languages" }}
|
||||
hljs.configure({languages: [{{(delimit . ", ")}}]});
|
||||
{{ end }}
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
{{ $.Scratch.Delete "hl_languages" }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,5 +1 @@
|
|||
{{ if .Site.GoogleAnalytics }}
|
||||
<!-- Google Analytics -->
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "footer/font-awesome-js.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
{{ partial "footer.html" . }}
|
||||
|
||||
{{ $include_toc := .Params.include_toc}}
|
||||
{{ if .Site.GoogleAnalytics }}
|
||||
<!-- Google Analytics -->
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "footer/font-awesome-js.html" . }}
|
||||
{{ partial "highlight-js.html" . }}
|
||||
{{ with .Site.Params.toc }}
|
||||
{{ if and (eq . "tocbot") (ne $include_toc false) }}
|
||||
|
|
|
@ -1,5 +1 @@
|
|||
{{ if .Site.GoogleAnalytics }}
|
||||
<!-- Google Analytics -->
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{ end }}
|
||||
{{ partial "footer/font-awesome-js.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
|
|
Loading…
Reference in New Issue