Adding possibility for custom body html injection outside of installed theme
This commit is contained in:
parent
e8fc700483
commit
cc8eee2d77
5 changed files with 8 additions and 7 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" . }}
|
|
@ -1,2 +0,0 @@
|
||||||
{{ partial "footer/font-awesome-js.html" . }}
|
|
||||||
{{ partial "footer/custom.html" . }}
|
|
Loading…
Add table
Reference in a new issue