refactors the layouts

This commit is contained in:
Huy Tran 2018-07-16 13:22:00 +10:00
parent cefd39e9a1
commit 05d11325ea
28 changed files with 394 additions and 116 deletions

View file

@ -7,12 +7,14 @@
{{ range (where .Data.Pages "Type" "not in" (slice "about" "portfolio")).GroupBy "Section" -}}
{{ range .Pages }}
<div class="post">
<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 class="list__title--big">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>{{ if .Draft }}<sup> <i class="fas fa-pen-square fa-xs"></i></sup>{{ end }}
</span>
{{ .Summary }}
{{- if .Truncated }}
<span class="title__date">
<i class="fas fa-calendar-alt"></i> {{ .Date.Format (.Site.Params.dateformat | default "Jan 02, 2006") }}
</span>
{{ .Summary }}
{{ if .Truncated -}}
<div class="read-more-link">
<a href="{{ .RelPermalink }}">Read More…</a>
</div>