diff --git a/config-nightfall.toml b/config-nightfall.toml index d425d59..50d90bd 100644 --- a/config-nightfall.toml +++ b/config-nightfall.toml @@ -35,13 +35,16 @@ theme = "nightfall" [params.author] name = "Hugo Nightfall" + avatar = "/avatar.png" + avatarSize = "size-m" + avatarFirst = true + + readingTime = false + published = false [params.styles] color = "blue" -readingTime = true -published = true - # footerHtml = 'CC BY-SA 4.0, Built with Hugo and Nightfall theme' [[params.social]] diff --git a/config.toml b/config.toml index c060ca0..b1ec80f 120000 --- a/config.toml +++ b/config.toml @@ -1 +1 @@ -config-nix.toml \ No newline at end of file +config-nightfall.toml \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..6a96b05 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,42 @@ +{{ define "title"}} +{{ .Title }} | {{ .Site.Params.author.name }} +{{ end }} + +{{ define "main" }} +
+

{{ .Title }}

+ {{ if .Description}} +

{{.Description}}

+ {{ end }} + {{ if .Params.showMetadata | default true }} +
+
+ {{ 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 }} +
{{ i18n "published" }}
+ {{ $formattedDate := .Date.Format "2006-01-02" }} +
+ {{ end }} + {{ if .Site.Params.readingTime | default true }} +
{{ i18n "reading_time" }}
+
{{ i18n "reading_time_desc" .ReadingTime }}
+ {{ end }} +
+
+ {{ end }} +
+ {{ .Content }} +
+
+ {{ template "_internal/disqus.html" . }} +
+
+{{ end }} diff --git a/static/avatar.png b/static/avatar.png new file mode 100644 index 0000000..1466cb0 Binary files /dev/null and b/static/avatar.png differ diff --git a/themes/nightfall b/themes/nightfall index 88f65c6..6b97d1b 160000 --- a/themes/nightfall +++ b/themes/nightfall @@ -1 +1 @@ -Subproject commit 88f65c6a36a64d8ea7e0dbafb92f66eeb13bcee6 +Subproject commit 6b97d1bab2cec4389c47f01c53fba16fb7e1055c diff --git a/themes/nix b/themes/nix index 104db07..ed6d5c3 160000 --- a/themes/nix +++ b/themes/nix @@ -1 +1 @@ -Subproject commit 104db07428cac320d86241d3bb1f971c2acb814d +Subproject commit ed6d5c3c01a6202e58dc276c2a49d32884b6fafa