Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Brandon Rozek 2020-12-22 09:19:09 -05:00
commit 4f7e08f5ac
23 changed files with 617 additions and 20 deletions

View file

@ -1,6 +1,22 @@
{{ define "main"}}
<h1 class='title'>{{ .Title }}</h1>
{{ partial "header.html" . }}
{{ if not .Date.IsZero }}
<!-- date -->
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
<!-- tags -->
<div id="tags">
<ul>
{{ range .Param "tags" }}
{{ $name := . }}
{{ with $.Site.GetPage (printf "/tags/%s" ($name | urlize)) }}
<li><a href="{{ .Permalink }}">{{ $name }}</a></li>
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
<!-- content -->
<div id="contentBody">
{{ .Content }}