refactoring page layouts
This commit is contained in:
parent
cf95cacd15
commit
88d2987fc2
20 changed files with 346 additions and 235 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue