Updates to the blog list so far (I've lost track)
This commit is contained in:
parent
d6e5c2a978
commit
42dc062147
2 changed files with 19 additions and 16 deletions
|
@ -1,11 +1,14 @@
|
||||||
<li>
|
<li class="post">
|
||||||
<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 "Jan 2, 2006" }}</time>
|
||||||
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "2" }}</time>
|
<h2 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
{{ if .Description }}
|
||||||
<div class="category">
|
<p>{{ .Description }}</p>
|
||||||
{{ with index (.GetTerms "categories") 0 }}
|
{{ else if lt .WordCount 110 }}
|
||||||
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
<article>{{ .Content }}</article>
|
||||||
{{ end }}
|
{{ else }}
|
||||||
</div>
|
{{ warnf "Post \"%s\" doesn't have a description or content suitable for the blog list" .Title }}
|
||||||
|
<p>{{ .WordCount }} words</p>
|
||||||
|
{{ end }}
|
||||||
|
{{ partial "footer_tags.html" . }}
|
||||||
{{ partial "development/draft_tag.html" . }}
|
{{ partial "development/draft_tag.html" . }}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{- range .Pages.ByDate.GroupByDate "2006" -}}
|
{{- range .Pages.ByDate.GroupByDate "2006" -}}
|
||||||
<h5>{{ .Key | title }}</h5>
|
<h1 class="date">{{ .Key | title }}</h1>
|
||||||
<ul>
|
<ul>
|
||||||
{{- range .Pages -}}
|
{{- range .Pages -}}
|
||||||
{{- if or (not .Draft) (not hugo.IsProduction) -}}
|
{{- if or (not .Draft) (not hugo.IsProduction) -}}
|
||||||
{{- .Render "li_grid_with_date" -}}
|
{{- .Render "li_grid_with_date" -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
</ul>
|
||||||
</ul>
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue