Refactor templates and partials
This commit is contained in:
@@ -16,4 +16,4 @@
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -5,14 +5,16 @@
|
||||
<h2>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</h2>
|
||||
<h5>{{ .Date.Format "January 2, 2006" }}</h5>
|
||||
<h5>
|
||||
<strong>{{ .Date.Format "January 2, 2006" }}</strong>
|
||||
</h5>
|
||||
<p>
|
||||
{{ .Summary }}
|
||||
{{- .Summary -}}
|
||||
{{ if .Truncated }}
|
||||
<a href="{{ .Permalink }}">...</a>
|
||||
<a href="{{ .Permalink }}">...</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
{{ define "main" }}
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h5>{{ .Date.Format "January 2, 2006" }}</h5>
|
||||
<h5>
|
||||
<strong>{{ .Date.Format "January 2, 2006" }}</strong>
|
||||
</h5>
|
||||
</header>
|
||||
<article class="markdown">
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user