the website is now more lightweight

This commit is contained in:
Vrifox 2020-11-22 19:06:31 +01:00
parent 59c38330f6
commit 74929ff17a
4 changed files with 8 additions and 93 deletions

View file

@ -14,9 +14,16 @@
<article>
<h1><span>{{ .Title }}</span></h1>
{{ with .Description }}<p class="description">{{ . }}</p>{{ end }}
{{- if eq .Params.type "post" }}
<p class="meta" title="{{ .Date.Format "2 Jan 2006, 15:04 MST" }}">
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
{{- with .Params.author }}<span class="author">by {{ . }}</span>{{ end }}
{{ end }}
{{- if eq .Params.type "project" }}
<p class="meta">
{{ with .Params.activetime }}<span class="date">{{ . }}</span><br />{{ end }}
{{ with .Params.status }}<span class="status">{{ . }}</span>{{ end }}
{{- end }}
</p>
</article>
</a>