|
@ -1,8 +1,8 @@ |
|
|
<section class="article-header"> |
|
|
<section class="article-header"> |
|
|
<h1>{{ .Title | markdownify }}</h1> |
|
|
<h1>{{ .Title | markdownify }}</h1> |
|
|
|
|
|
|
|
|
{{ $authors := .Params.authors | default (slice .Site.Params.defaultAuthor) }} |
|
|
{{- $authors := .Params.authors | default (slice .Site.Params.defaultAuthor) }} |
|
|
{{ $primaryAuthor := index $authors 0 }} |
|
|
{{- $primaryAuthor := index $authors 0 }} |
|
|
|
|
|
|
|
|
{{ with $primaryAuthor }} |
|
|
{{ with $primaryAuthor }} |
|
|
<a class="center-text" href={{ printf "/%s/%s" "authors" (urlize .) }}> |
|
|
<a class="center-text" href={{ printf "/%s/%s" "authors" (urlize .) }}> |
|
@ -16,6 +16,7 @@ |
|
|
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
|
|
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
|
|
{{ end }} |
|
|
{{ end }} |
|
|
|
|
|
|
|
|
{{ partial "header-image.html" (dict "image" (.Resources.GetMatch .Params.featured.url) "alt" .Params.featured.alt) }} |
|
|
{{ $image := (.Resources.GetMatch .Params.featured.url) }} |
|
|
|
|
|
{{ partial "image.html" (dict "image" $image "alt" .Params.featured.alt "class" "shadow featured") }} |
|
|
|
|
|
|
|
|
</section> |
|
|
</section> |
|
|