theme(fix): add author bylines and fix author generation
closes #623
Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
1 files added
5 files modified
| | |
| | | |
| | | [params] |
| | | text_color = "" |
| | | author = "" |
| | | author = "Victor Hugo" # default author, override via `author` in a posts front matter |
| | | favicon = "" |
| | | site_logo = "" |
| | | description = "The last theme you'll ever need. Maybe." |
| | |
| | | featured_image: "/images/esmeralda.jpg" |
| | | tags: [] |
| | | title: "Chapter VI: Esmeralda" |
| | | author: "Victor Hugo" |
| | | --- |
| | | We are delighted to be able to inform the reader, that during the whole of |
| | | this scene, Gringoire and his piece had stood firm. His actors, spurred on |
| | |
| | | {{ end }} |
| | | |
| | | {{ define "main" }} |
| | | {{ $page := .}} |
| | | {{ $section := .Site.GetPage "section" .Section }} |
| | | <article class="flex-l flex-wrap justify-between mw8 center ph3"> |
| | | <header class="mt4 w-100"> |
| | |
| | | </h1> |
| | | {{ with .Params.author | default .Site.Params.author }} |
| | | <p class="tracked"> |
| | | {{- if eq .Lang "de" "en" "es" "fr" "it" "no" "pt" -}} |
| | | {{- if eq $page.Language "de" "en" "es" "fr" "it" "no" "pt" -}} |
| | | {{- i18n "by" -}} |
| | | {{ end -}} <strong> |
| | | {{- if reflect.IsSlice . -}} |
| | |
| | | <div class="f6 f5-l lh-copy nested-copy-line-height nested-links"> |
| | | {{ .Summary }} |
| | | </div> |
| | | {{ with .Params.author | default .Site.Params.author }} |
| | | <p class="f6 lh-copy mv0">By {{ . }}</p> |
| | | {{- end -}} |
| | | <a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ $.Param "read_more_copy" | default (i18n "readMore") }}</a> |
| | | {{/* TODO: add author |
| | | <p class="f6 lh-copy mv0">By {{ .Author }}</p> */}} |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="f6 f5-l lh-copy nested-copy-line-height nested-links"> |
| | | {{ .Summary }} |
| | | </div> |
| | | {{ with .Params.author | default .Site.Params.author }} |
| | | <p class="f6 lh-copy mv0">By {{ . }}</p> |
| | | {{- end -}} |
| | | <a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ $.Param "read_more_copy" | default (i18n "readMore") }}</a> |
| | | {{/* TODO: add author |
| | | <p class="f6 lh-copy mv0">By {{ .Author }}</p> */}} |
| | | </div> |
| | | </div> |
| | | </div> |