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