Restructures the templates
This commit is contained in:
parent
6b929ff8e0
commit
f4aa888a5c
14 changed files with 108 additions and 128 deletions
|
@ -1,16 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
{{ block "header" . -}}{{- end }}
|
||||
<body class="{{- if .Site.Params.themeColor }}{{ .Site.Params.themeColor }}{{ end }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
|
||||
{{ partial "sidebar.html" . }}
|
||||
<body {{- if .Site.Params.themeColor }}class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{ end }}"{{end}}>
|
||||
{{ partial "sidebar.html" . -}}
|
||||
<div class="content container">
|
||||
{{ block "content" . }}{{ end }}
|
||||
<div class="footer">
|
||||
{{ block "footer" . }}{{ end }}
|
||||
</div>
|
||||
{{ block "content" . -}}{{- end }}
|
||||
</div>
|
||||
<!-- Google Analytics -->
|
||||
{{ if .Site.GoogleAnalytics -}}
|
||||
{{ block "footer" . -}}{{- end }}
|
||||
{{ if and (not .Site.BuildDrafts) (.Site.GoogleAnalytics) -}}
|
||||
{{ "<!-- Google Analytics -->" | safeHTML }}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{- end }}
|
||||
</body>
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
{{- end -}}
|
||||
|
||||
{{ define "footer" -}}
|
||||
{{ partial "highlight.html" . }}
|
||||
{{ partial "commenting.html" . }}
|
||||
<div class="footer content">
|
||||
{{- partial "highlight.html" . -}}
|
||||
{{- partial "commenting.html" . -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue