diff --git a/assets/scss/style.scss b/assets/scss/style.scss index dcf774d..b472c35 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -961,6 +961,11 @@ a.footnote-ref { } } +.human{ + display: flex; + justify-content: flex-end; +} + // If homeSubtitlePrinter is true {{ if .Site.Params.homeSubtitlePrinter }} #home-subtitle{ diff --git a/hugo.toml.example b/hugo.toml.example index f420fae..bfd95be 100644 --- a/hugo.toml.example +++ b/hugo.toml.example @@ -112,6 +112,7 @@ expiryDate = ["expiryDate"] # pinnedSVGname = "pin" # descriptionInPosts= true # initialPublish = "Initally Posted on: " + # human = ["single","posts"] [[params.socialLinks]] name = "mastodon" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9ba7177..8a11fdc 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -21,6 +21,7 @@
{{ .Content | replaceRE "()" `${1}${3}` | safeHTML }}
+ {{ partial "human_made.html" . }} {{- if .Params.comments }}
{{ partial "comments.html" . }} diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 96cdaa5..cfe8ea5 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -1,4 +1,4 @@ -{{- if (or .Site.Config.Services.Disqus.Shortname .Site.DisqusShortname) -}} +{{- if .Site.Config.Services.Disqus.Shortname -}} {{ template "_internal/disqus.html" . }} {{- end -}} diff --git a/layouts/partials/human_made.html b/layouts/partials/human_made.html new file mode 100644 index 0000000..140d7e0 --- /dev/null +++ b/layouts/partials/human_made.html @@ -0,0 +1,7 @@ +{{- if (and (in .Site.Params.human "single") (ne .Type "posts")) -}} +
{{- partial "svg.html" (dict "context" . "name" "human-made") -}}
+{{- end -}} +{{- if (and (in .Site.Params.human "posts") (eq .Type "posts")) -}} +
{{- partial "svg.html" (dict "context" . "name" "human-made") -}}
+ +{{- end -}} \ No newline at end of file diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 3c39197..2063cd9 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -118,6 +118,8 @@ {{- else if (eq .name "404-archive") -}} +{{- else if (eq .name "human-made") -}} + {{- else -}} {{- end -}} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index b2bef18..8b8c11e 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -43,6 +43,7 @@
{{ .Content | replaceRE "()" `${1}${3}` | safeHTML }}
+ {{ partial "human_made.html" . }} {{- if .Site.Params.relatedPosts }} {{- partial "related-posts.html" . -}} {{- end }} diff --git a/theme.toml b/theme.toml index 295db35..611c846 100644 --- a/theme.toml +++ b/theme.toml @@ -21,7 +21,7 @@ features = [ [author] - name = "1BL4Z3R" + name = "BLZR" homepage = "https://blzr.sbs" [original] name = "Track3"