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.
 
 

31 lines
960 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 }}
<section class="article-group author-articles">
{{- range .Data.Pages }}
{{ partial "article.html" . }}
{{- end }}
</section>
{{ end }}