refactors the layouts

This commit is contained in:
Huy Tran 2018-07-16 13:22:00 +10:00
parent cefd39e9a1
commit 05d11325ea
28 changed files with 394 additions and 116 deletions

View file

@ -7,9 +7,5 @@
{{ block "content" . -}}{{- end }}
</div>
{{ block "footer" . -}}{{- end }}
{{ if and (not .Site.BuildDrafts) (.Site.GoogleAnalytics) -}}
{{ "<!-- Google Analytics -->" | safeHTML }}
{{ template "_internal/google_analytics_async.html" . }}
{{- end }}
</body>
</html>

View file

@ -3,8 +3,9 @@
{{- end -}}
{{ define "content" -}}
{{ partial "content_list.html" . }}
{{ partial "page_list.html" . }}
{{- end -}}
{{ define "footer" -}}
{{ partial "footer.html" . }}
{{- end }}

View file

@ -3,12 +3,13 @@
{{- end -}}
{{ define "content" -}}
{{ partial "content_single.html" . }}
{{ partial "page_single.html" . }}
{{- end -}}
{{ define "footer" -}}
<div class="footer content">
{{- partial "highlight.html" . -}}
{{- partial "highlight-js.html" . -}}
{{- partial "commenting.html" . -}}
</div>
{{ partial "footer.html" . }}
{{- end -}}