From 5ee9c821259bda1867ba3708992a8aa97bd095ed Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 11 Jul 2024 11:54:28 +0000 Subject: [PATCH] Add HumanMadeMark Signed-off-by: GitHub Action --- assets/scss/style.scss | 5 +++++ hugo.toml.example | 1 + layouts/_default/single.html | 1 + layouts/partials/comments.html | 2 +- layouts/partials/human_made.html | 7 +++++++ layouts/partials/svg.html | 2 ++ layouts/posts/single.html | 1 + theme.toml | 2 +- 8 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/human_made.html 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")) -}} + +{{- end -}} +{{- if (and (in .Site.Params.human "posts") (eq .Type "posts")) -}} + + +{{- 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"