Make use of the base template
This commit is contained in:
parent
50fec3e32d
commit
82832c1244
|
@ -1,12 +1,4 @@
|
||||||
{{ partial "head.html" . }}
|
{{ define "main" -}}
|
||||||
<body class="{{ .Site.Params.themeColor }}">
|
<h1>404: Page not found</h1>
|
||||||
|
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ .Site.BaseURL }}">Head back home</a> to try finding it again.</p>
|
||||||
{{ partial "sidebar.html" . }}
|
{{- end }}
|
||||||
|
|
||||||
<div class="content container">
|
|
||||||
<h1>404: Page not found</h1>
|
|
||||||
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ .Site.BaseURL }}">Head back home</a> to try finding it again.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
{{ partial "head.html" . }}
|
||||||
|
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
|
||||||
|
{{ partial "sidebar.html" . }}
|
||||||
|
<div class="content container">
|
||||||
|
{{ block "main" . -}}{{- end }}
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -1,16 +1,9 @@
|
||||||
{{ partial "head.html" . }}
|
{{ define "main" -}}
|
||||||
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
|
<ul class="posts">
|
||||||
|
{{ range .Data.Pages -}}
|
||||||
{{ partial "sidebar.html" . }}
|
|
||||||
|
|
||||||
<div class="content container">
|
|
||||||
<ul class="posts">
|
|
||||||
{{ range .Data.Pages }}
|
|
||||||
<li>
|
<li>
|
||||||
<span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
|
<span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
{{- end }}
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,19 +1,12 @@
|
||||||
{{ partial "head.html" . }}
|
{{ define "main" -}}
|
||||||
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
|
<div class="post">
|
||||||
{{ partial "sidebar.html" . }}
|
|
||||||
|
|
||||||
<div class="content container">
|
|
||||||
<div class="post">
|
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ if .Site.Params.disqusShortname }}
|
{{ if .Site.Params.disqusShortname -}}
|
||||||
<h2>Comments</h2>
|
<h2>Comments</h2>
|
||||||
{{ partial "disqus" . }}
|
{{ partial "disqus" . }}
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</div>
|
{{- end }}
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,26 +1,13 @@
|
||||||
{{ partial "head.html" . }}
|
{{ define "main" -}}
|
||||||
<body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
|
|
||||||
|
|
||||||
{{ partial "sidebar.html" . }}
|
|
||||||
|
|
||||||
<div class="content container">
|
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
|
{{ range .Data.Pages -}}
|
||||||
{{ range .Data.Pages }}
|
<div class="post">
|
||||||
<div class="post">
|
|
||||||
<h1 class="post-title">
|
<h1 class="post-title">
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
{{ .Title }}
|
|
||||||
</a>
|
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
|
{{- end }}
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue