Adding possibility for custom body html injection outside of installed theme

This commit is contained in:
Julian Stier 2020-03-12 15:32:30 +01:00
parent e8fc700483
commit cc8eee2d77
5 changed files with 8 additions and 7 deletions

View File

@ -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 }}

View File

@ -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 }}

View File

View 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" . }}

View File

@ -1,2 +0,0 @@
{{ partial "footer/font-awesome-js.html" . }}
{{ partial "footer/custom.html" . }}