Clean up the blog list template
This commit is contained in:
parent
9e72b74200
commit
28a547ea92
1 changed files with 13 additions and 17 deletions
|
@ -4,28 +4,24 @@
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ range .Pages.ByDate.GroupByDate "2006" }}
|
{{ range .Pages.ByDate.GroupByDate "2006" }}
|
||||||
<h2>{{ .Key }}</h2>
|
<h2>{{ .Key }}</h2>
|
||||||
<ul class="post-list">
|
<ul class="post-list">
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
{{ if or (not .Draft) (and .Draft (not hugo.IsProduction)) }}
|
{{ if or (not .Draft) (and .Draft (not hugo.IsProduction)) }}
|
||||||
<li>
|
<li>
|
||||||
<h1>
|
<h1>
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
{{ partial "development/draft_tag.html" . }}
|
{{ partial "development/draft_tag.html" . }}
|
||||||
</h1>
|
</h1>
|
||||||
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "January" }}</time>
|
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "January" }}</time>
|
||||||
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "2" }}</time>
|
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "2" }}</time>
|
||||||
</li>
|
</li>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
</ul>
|
||||||
</ul>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "footer" }}
|
{{ define "footer" }}
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "styles" }}
|
|
||||||
<link rel="preload stylesheet" as="style" href="{{ `/styles/main.css` | absURL }}">
|
|
||||||
{{ end }}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue