mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
20
themes/minimo/layouts/partials/entry/meta/author.html
Normal file
20
themes/minimo/layouts/partials/entry/meta/author.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{- with .Params.authors -}}
|
||||
|
||||
{{- $lang := ( $.Params.lang | default $.Lang ) -}}
|
||||
|
||||
<span class='byline'>
|
||||
{{- partial "svg/icon" "author" -}}
|
||||
<span class='screen-reader-text'> {{ i18n "by" }} </span>
|
||||
|
||||
{{- range $i, $authorID := . -}}
|
||||
{{- $author := ( index $.Site.Data.authors $authorID ) -}}
|
||||
{{- $i18nAuthor := ( index $author $lang ) -}}
|
||||
{{- $name := ( or $i18nAuthor.name $author.name ) -}}
|
||||
{{- if gt $i 0 }}, {{ end -}}
|
||||
<a href='{{ ( print "authors" "/" $author.id ) | relLangURL }}'>
|
||||
{{- $name.display -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
</span>
|
||||
|
||||
{{- end -}}
|
8
themes/minimo/layouts/partials/entry/meta/posted-on.html
Normal file
8
themes/minimo/layouts/partials/entry/meta/posted-on.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{{- $dateFormat := ( .Site.Params.settings.dateFormat | default "2006, Jan 02" ) -}}
|
||||
<span class='posted-on'>
|
||||
{{- partial "svg/icon" "calendar" -}}
|
||||
<span class='screen-reader-text'>{{ i18n "postedOn" }} </span>
|
||||
<time class='entry-date' datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
|
||||
{{- .Date.Format $dateFormat -}}
|
||||
</time>
|
||||
</span>
|
@@ -0,0 +1,6 @@
|
||||
{{ if .Site.Params.settings.showReadingTime }}
|
||||
<span class='reading-time'>
|
||||
{{- partial "svg/icon" "clock" -}}
|
||||
{{ i18n "readingTime" .ReadingTime }}
|
||||
</span>
|
||||
{{ end }}
|
Reference in New Issue
Block a user