Restructures the templates
This commit is contained in:
parent
6b929ff8e0
commit
f4aa888a5c
14 changed files with 108 additions and 128 deletions
|
@ -4,22 +4,22 @@
|
|||
|
||||
{{ define "content" -}}
|
||||
<div class="posts">
|
||||
{{ range (where .Data.Pages "Type" "!=" "about").GroupBy "Section" }}
|
||||
{{ range (where .Data.Pages "Type" "not in" (slice "about" "portfolio")).GroupBy "Section" -}}
|
||||
{{ range .Pages }}
|
||||
<div class="post">
|
||||
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }}<sup><i class="fas fa-pen-square fa-xs"></i></sup>{{ end }}</h1>
|
||||
<h1 class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ if .Draft }}<sup> <i class="fas fa-pen-square fa-xs"></i></sup>{{ end }}</h1>
|
||||
<span class="post-date">
|
||||
{{- .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") -}}
|
||||
</span>
|
||||
{{ .Summary }}
|
||||
{{ if .Truncated }}
|
||||
{{ .Summary }}
|
||||
{{- if .Truncated }}
|
||||
<div class="read-more-link">
|
||||
<a href="{{ .RelPermalink }}">Read More…</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue