refactoring page layouts

This commit is contained in:
Huy Tran 2018-01-24 16:42:50 +07:00
parent cf95cacd15
commit 88d2987fc2
20 changed files with 346 additions and 235 deletions

View file

@ -1,18 +1,10 @@
{{ define "main" }}
<h1 class="title">{{ .Title }}</h1>
<ul class="posts">
{{ range .Data.Pages -}}
<li>
<span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Jan 2, 2006" }}</time></span>
</li>
{{- end }}
</ul>
{{- end }}
{{ define "header" -}}
{{ partial "header.html" . }}
{{- end -}}
{{ define "footer" }}
<!-- Footer -->
{{ if .Site.GoogleAnalytics -}}
{{ template "_internal/google_analytics_async.html" . }}
{{- end}}
<script src="{{ .Site.BaseURL }}js/main.js"></script>
{{- end }}
{{ define "content" -}}
{{ partial "list_content.html" . }}
{{- end -}}
{{ define "footer" -}}
{{- end }}