refactors/revises theme layouts
This commit is contained in:
parent
f1605d3802
commit
5701197651
15 changed files with 80 additions and 55 deletions
|
@ -3,15 +3,15 @@
|
|||
{{- end }}
|
||||
|
||||
{{ define "content" -}}
|
||||
<div class="posts">
|
||||
<div class="post-list">
|
||||
{{ range (where .Data.Pages "Type" "not in" (slice "about" "portfolio")).GroupBy "Section" -}}
|
||||
{{ range .Pages }}
|
||||
<div class="post">
|
||||
<span class="list__title--big">
|
||||
<div class="post-list__item">
|
||||
<span class="item__title--big">
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ if .Draft }}<sup> <i class="fas fa-pen-square fa-xs"></i></sup>{{ end }}
|
||||
</span>
|
||||
<span class="title__date">
|
||||
<i class="fas fa-calendar-alt"></i> {{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }}
|
||||
<span class="item__date">
|
||||
{{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }}
|
||||
</span>
|
||||
{{ .Summary }}
|
||||
{{ if .Truncated -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue