You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
887 B
28 lines
887 B
{{ define "main" }}
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
{{ with .Params.authors }}
|
|
{{ $author := (index . 0) }}
|
|
<h4>Author: <a href={{ printf "/%s/%s" "authors" (urlize $author) }}>{{ $author }}</a></h4>
|
|
{{ end }}
|
|
|
|
{{- if (not .Params.hideDate) }}
|
|
{{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
|
{{- $dateHuman := .Date | time.Format "Mon | Jan 2, 2006" }}
|
|
<h4>Posted: <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></h4>
|
|
{{- end }}
|
|
|
|
{{- range (.GetTerms "tags") }}
|
|
<span><a href="{{ .Permalink }}">#{{ .LinkTitle }}</a></span>
|
|
{{- end }}
|
|
|
|
{{- partial "image.html"
|
|
(dict
|
|
"image" (.Resources.GetMatch "featured")
|
|
"alt" .Params.featured.alt
|
|
"sizes" (slice 320 480 600 800)
|
|
"classes" (slice "shadow" "featured")) }}
|
|
|
|
{{ .Content }}
|
|
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
|
{{ end }}
|
|
|