removes all space consuming symbols in templates

This commit is contained in:
Huy Tran 2018-07-30 07:41:49 +10:00
parent c5ab13bf48
commit 90a8c7d5af
26 changed files with 126 additions and 126 deletions

View file

@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{ block "header" . -}}{{- end }}
{{ block "header" . }}{{ end }}
<body {{ if .Site.Params.themeColor }}class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{ end }}"{{end}}>
{{ partial "sidebar.html" . -}}
{{ partial "sidebar.html" . }}
<div class="content container">
{{ block "content" . -}}{{- end }}
{{ block "content" . }}{{ end }}
</div>
{{ block "footer" . -}}{{- end }}
{{ block "footer" . }}{{ end }}
</body>
</html>

View file

@ -1,11 +1,11 @@
{{ define "header" -}}
{{ define "header" }}
{{ partial "header.html" . }}
{{- end -}}
{{ end }}
{{ define "content" -}}
{{ define "content" }}
{{ partial "page-list/content.html" . }}
{{- end -}}
{{ end }}
{{ define "footer" -}}
{{ define "footer" }}
{{ partial "page-list/footer.html" . }}
{{- end }}
{{ end }}

View file

@ -1,13 +1,13 @@
{{ define "header" -}}
{{ define "header" }}
{{ partial "page-single/variables-init.html" . }}
{{ partial "header.html" . }}
{{- end -}}
{{ end }}
{{ define "content" -}}
{{ define "content" }}
{{ partial "page-single/content.html" . }}
{{- end -}}
{{ end }}
{{ define "footer" -}}
{{ define "footer" }}
{{ partial "page-single/footer.html" . }}
{{ partial "page-single/variables-deinit.html" . }}
{{- end -}}
{{ end }}