Add HumanMadeMark

Signed-off-by: GitHub Action <action@github.com>
This commit is contained in:
GitHub Action
2024-07-11 11:54:28 +00:00
parent f6bb50aa1d
commit 5ee9c82125
8 changed files with 19 additions and 2 deletions

View File

@ -961,6 +961,11 @@ a.footnote-ref {
} }
} }
.human{
display: flex;
justify-content: flex-end;
}
// If homeSubtitlePrinter is true // If homeSubtitlePrinter is true
{{ if .Site.Params.homeSubtitlePrinter }} {{ if .Site.Params.homeSubtitlePrinter }}
#home-subtitle{ #home-subtitle{

View File

@ -112,6 +112,7 @@ expiryDate = ["expiryDate"]
# pinnedSVGname = "pin" # pinnedSVGname = "pin"
# descriptionInPosts= true # descriptionInPosts= true
# initialPublish = "Initally Posted on: " # initialPublish = "Initally Posted on: "
# human = ["single","posts"]
[[params.socialLinks]] [[params.socialLinks]]
name = "mastodon" name = "mastodon"

View File

@ -21,6 +21,7 @@
<div class="content"> <div class="content">
{{ .Content | replaceRE "(<h[1-6] id=\"([^\"]+)\".+)(</h[1-6]+>)" `${1}<a href="#${2}" class="anchor" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line></svg></a>${3}` | safeHTML }} {{ .Content | replaceRE "(<h[1-6] id=\"([^\"]+)\".+)(</h[1-6]+>)" `${1}<a href="#${2}" class="anchor" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line></svg></a>${3}` | safeHTML }}
</div> </div>
{{ partial "human_made.html" . }}
{{- if .Params.comments }} {{- if .Params.comments }}
<div id="comments" class="thin"> <div id="comments" class="thin">
{{ partial "comments.html" . }} {{ partial "comments.html" . }}

View File

@ -1,4 +1,4 @@
{{- if (or .Site.Config.Services.Disqus.Shortname .Site.DisqusShortname) -}} {{- if .Site.Config.Services.Disqus.Shortname -}}
{{ template "_internal/disqus.html" . }} {{ template "_internal/disqus.html" . }}
{{- end -}} {{- end -}}

View File

@ -0,0 +1,7 @@
{{- if (and (in .Site.Params.human "single") (ne .Type "posts")) -}}
<div class="human single"><a href="https://humanmademark.com/" target="_blank" rel="external noreferrer noopener"><abbr title="I don't hate AIs; but I love humans!">{{- partial "svg.html" (dict "context" . "name" "human-made") -}}</abbr></a></div>
{{- end -}}
{{- if (and (in .Site.Params.human "posts") (eq .Type "posts")) -}}
<div class="human posts"><a href="https://humanmademark.com/" target="_blank" rel="external noreferrer noopener"><abbr title="I don't hate AIs; but I love humans!">{{- partial "svg.html" (dict "context" . "name" "human-made") -}}</abbr></a></div>
{{- end -}}

File diff suppressed because one or more lines are too long

View File

@ -43,6 +43,7 @@
<div class="content"> <div class="content">
{{ .Content | replaceRE "(<h[1-6] id=\"([^\"]+)\".+)(</h[1-6]+>)" `${1}<a href="#${2}" class="anchor" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line></svg></a>${3}` | safeHTML }} {{ .Content | replaceRE "(<h[1-6] id=\"([^\"]+)\".+)(</h[1-6]+>)" `${1}<a href="#${2}" class="anchor" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line></svg></a>${3}` | safeHTML }}
</div> </div>
{{ partial "human_made.html" . }}
{{- if .Site.Params.relatedPosts }} {{- if .Site.Params.relatedPosts }}
{{- partial "related-posts.html" . -}} {{- partial "related-posts.html" . -}}
{{- end }} {{- end }}

View File

@ -21,7 +21,7 @@ features = [
[author] [author]
name = "1BL4Z3R" name = "BLZR"
homepage = "https://blzr.sbs" homepage = "https://blzr.sbs"
[original] [original]
name = "Track3" name = "Track3"