Add avatar configuration and new single layout for Nightfall theme
This commit is contained in:
@@ -35,13 +35,16 @@ theme = "nightfall"
|
|||||||
|
|
||||||
[params.author]
|
[params.author]
|
||||||
name = "Hugo Nightfall"
|
name = "Hugo Nightfall"
|
||||||
|
avatar = "/avatar.png"
|
||||||
|
avatarSize = "size-m"
|
||||||
|
avatarFirst = true
|
||||||
|
|
||||||
|
readingTime = false
|
||||||
|
published = false
|
||||||
|
|
||||||
[params.styles]
|
[params.styles]
|
||||||
color = "blue"
|
color = "blue"
|
||||||
|
|
||||||
readingTime = true
|
|
||||||
published = true
|
|
||||||
|
|
||||||
# footerHtml = 'CC BY-SA 4.0, Built with <a href="https://gohugo.io" class="footerLink">Hugo</a> and <a href="https://github.com/LordMathis/hugo-theme-nightfall" class="footerLink">Nightfall</a> theme'
|
# footerHtml = 'CC BY-SA 4.0, Built with <a href="https://gohugo.io" class="footerLink">Hugo</a> and <a href="https://github.com/LordMathis/hugo-theme-nightfall" class="footerLink">Nightfall</a> theme'
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
|
@@ -1 +1 @@
|
|||||||
config-nix.toml
|
config-nightfall.toml
|
42
layouts/_default/single.html
Normal file
42
layouts/_default/single.html
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
{{ define "title"}}
|
||||||
|
{{ .Title }} | {{ .Site.Params.author.name }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "main" }}
|
||||||
|
<div class="postWrapper">
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ if .Description}}
|
||||||
|
<p>{{.Description}}</p>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Params.showMetadata | default true }}
|
||||||
|
<section class="postMetadata">
|
||||||
|
<dl>
|
||||||
|
{{ with .GetTerms "tags" }}
|
||||||
|
{{ partial "taxonomy/tags.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ with .GetTerms "authors" }}
|
||||||
|
{{ partial "taxonomy/authors.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ with .GetTerms "categories" }}
|
||||||
|
{{ partial "taxonomy/categories.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Site.Params.published | default true }}
|
||||||
|
<dt>{{ i18n "published" }}</dt>
|
||||||
|
{{ $formattedDate := .Date.Format "2006-01-02" }}
|
||||||
|
<dd><time datetime="{{ $formattedDate }}">{{ .Date | time.Format ":date_long" }}</time></dd>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Site.Params.readingTime | default true }}
|
||||||
|
<dt>{{ i18n "reading_time" }}</dt>
|
||||||
|
<dd>{{ i18n "reading_time_desc" .ReadingTime }}</dd>
|
||||||
|
{{ end }}
|
||||||
|
</dl>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
||||||
|
<div>
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{{ template "_internal/disqus.html" . }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
BIN
static/avatar.png
Normal file
BIN
static/avatar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 123 KiB |
Submodule themes/nightfall updated: 88f65c6a36...6b97d1bab2
Submodule themes/nix updated: 104db07428...ed6d5c3c01
Reference in New Issue
Block a user