Make use of the base template
This commit is contained in:
parent
50fec3e32d
commit
82832c1244
5 changed files with 42 additions and 69 deletions
|
@ -1,19 +1,12 @@
|
|||
{{ partial "head.html" . }}
|
||||
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
|
||||
{{ partial "sidebar.html" . }}
|
||||
{{ define "main" -}}
|
||||
<div class="post">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
<div class="content container">
|
||||
<div class="post">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ if .Site.Params.disqusShortname }}
|
||||
<h2>Comments</h2>
|
||||
{{ partial "disqus" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{{ if .Site.Params.disqusShortname -}}
|
||||
<h2>Comments</h2>
|
||||
{{ partial "disqus" . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue