Browse Source
commitmasterf16dd97f4d
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Jul 1 17:25:28 2024 -0400 adjust author page header commit1a9d71abe4
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Jul 1 17:25:07 2024 -0400 include margin class in article meta images commit409d00b7c5
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Jul 1 17:24:46 2024 -0400 adding left-to-right layout and move image margin to separate class commitc5e8614005
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Jul 1 11:59:20 2024 -0400 simplify author page layout commit8ea5527e19
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Jul 1 11:58:46 2024 -0400 center featured images and remove unused classes commit302c628200
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Jul 1 11:46:56 2024 -0400 remove article-meta styling commit8e8a0284b5
Author: Alexander Avery <alex.avery@beetbox.io> Date: Mon Jul 1 11:46:41 2024 -0400 simplify layouts
Alexander Avery
5 months ago
6 changed files with 43 additions and 52 deletions
@ -1,2 +0,0 @@ |
|||||
<h2 class="small-text">{{ .Date.Format "Mon | Jan 2, 2006" }}</h2> |
|
||||
|
|
@ -1,6 +1,7 @@ |
|||||
{{ if .Params.releaseDate }} |
{{ with .Params.releaseDate }} |
||||
<h2 class="small-text center-text">Released {{ dateFormat "Mon | Jan 2, 2006" .Params.releaseDate }}</h2> |
<h2 class="small-text">Released: {{ dateFormat "Mon | Jan 2, 2006" . }}</h2> |
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
<h2 class="small-text">Platforms:</h2> |
<h2 class="small-text">Platforms: |
||||
<span class="margin small-text">{{ delimit .Params.platforms " · " }}</span> |
<span class="margin small-text">{{ delimit .Params.platforms " · " }}</span> |
||||
|
</h2> |
||||
|
@ -1,22 +1,25 @@ |
|||||
<section class="article-header"> |
<section> |
||||
<h1>{{ .Title | markdownify }}</h1> |
<h1 class="large-text">{{ .Title | markdownify }}</h1> |
||||
|
|
||||
{{- $authors := .Params.authors | default (slice .Site.Params.defaultAuthor) }} |
{{ with .Params.authors }} |
||||
{{- $primaryAuthor := index $authors 0 }} |
{{ $author := (index . 0) }} |
||||
|
<h2> |
||||
|
Author: <a href={{ printf "/%s/%s" "authors" (urlize $author) }}>{{ $author }}</a> |
||||
|
</h2> |
||||
|
{{ end }} |
||||
|
|
||||
{{ with $primaryAuthor }} |
{{ with .Date }} |
||||
<a class="center-text" href={{ printf "/%s/%s" "authors" (urlize .) }}> |
<h2 class="small-text">Posted: {{ .Format "Mon | Jan 2, 2006" }}</h2> |
||||
<h2>{{ . }}</h2> |
|
||||
</a> |
|
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
{{ .Render "meta-extra" }} |
{{ .Render "meta-extra" }} |
||||
|
|
||||
{{ range (.GetTerms "tags") }} |
{{ range (.GetTerms "tags") }} |
||||
|
<span> |
||||
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
<a class="small-text" href="{{ .Permalink }}">{{ .LinkTitle }}</a> |
||||
|
</span> |
||||
{{ end }} |
{{ end }} |
||||
|
|
||||
{{ $image := (.Resources.GetMatch "featured") }} |
{{ $image := (.Resources.GetMatch "featured") }} |
||||
{{ partial "image.html" (dict "image" $image "alt" .Params.featured.alt "class" "shadow featured") }} |
{{ partial "image.html" (dict "image" $image "alt" .Params.featured.alt "class" "shadow featured margin") }} |
||||
|
|
||||
</section> |
</section> |
||||
|
Loading…
Reference in new issue