blog.gabrielsimmer.com/themes/gs/layouts/_default/single.html
2021-07-10 19:55:07 +01:00

31 lines
730 B
HTML

{{ define "main" }}
<div class="container">
<div class="row">
<div class="twelve columns">
<h1>{{ default .Site.Title }}</h1>
</div>
</div>
<div class="row">
<div class="eight columns article">
<h2>{{- .Title -}}</h2>
{{ with .Params.author }}
<p>
By <strong>
{{ if reflect.IsSlice . }}
{{ delimit . ", " | markdownify }}
{{else}}
{{ . | markdownify }}
{{ end }}
</strong>
</p>
{{ end }}
<time {{ printf `datetime="%s"` (.Date.Format "2006-01-02T15:04:05Z07:00") | safeHTMLAttr }}>
{{- .Date.Format "January 2, 2006" -}}
</time>
{{- .Content -}}
</div>
</div>
{{ end }}