updated headers / footers / links / post tags

This commit is contained in:
2019-10-27 01:16:35 +02:00
parent c196fcf7a8
commit 261206c9bc
10 changed files with 124 additions and 40 deletions

View File

@@ -1,6 +1,32 @@
{{ define "main" }}
<article class="post">
<h1><a href="{{ .Permalink }}">{{ .Title }}</a> {{ if .Draft }}(Draft){{ end }}</h1>
<div class="post-header">
<h1 class="post-title">{{ .Title }} {{ if .Draft }}(Draft){{ end }}</h1>
<div class="post-meta">
{{ if .Params.Date }}
<span class="post-date"><i class="fa fa-chevron-right"></i>&nbsp;Posted on {{ .Date.Format "2006-01-02" }}</span>
{{ end }}
{{ with .Params.Author }}
<span class="post-author"><i class="fa fa-chevron-right"></i>&nbsp;{{ . }}</span>
{{ end }}
</div>
<div class="post-tags">
{{ if .Params.tags }}
<span class="post-tags">
<i class="fa fa-chevron-right"></i>&nbsp;
{{ range .Params.tags }}
<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">#{{ . }}</a>&nbsp;
{{ end }}
</span>
{{ end }}
</div>
{{ with .Params.Cover }}
<img src="{{ . | absURL }}" class="post-cover" />
{{ end }}
</div>
<div class="post-content">{{ .Content | safeHTML }}</div>