The current Hugo theme for the beetbox.io website
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.
 
 

29 lines
906 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 }}
{{- with (.Resources.GetMatch "featured") }}
{{- partial "image.html"
(dict
"image" .
"alt" .Params.alt
"sizes" (slice 320 480 600 800)
"classes" (slice "shadow" "featured")) }}
{{- end }}
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}