Compare commits

...

8 Commits

6 changed files with 64 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
--- ---
title: "Gullible" title: "Gullible"
subtitle: "" subtitle: ""
author: 'Chad Michael "Bug" Greenwood' author: bug
date: "2025-11-16T06:30:00-07:00" date: "2025-11-16T06:30:00-07:00"
toc: false toc: false
images: images:
@@ -34,4 +34,4 @@ aliases:
> Disseminating the truth, <br> > Disseminating the truth, <br>
> until it's all that exists. > until it's all that exists.
> >
> -- Chad Michael "Bug" Greenwood > -- {{< author "bug" >}}

View File

@@ -56,6 +56,12 @@ theme = "hello-friend-ng"
keywords = "homepage, blog, recipes, crafts, food, seasonings, woodworking, poetry, poems" keywords = "homepage, blog, recipes, crafts, food, seasonings, woodworking, poetry, poems"
images = [""] images = [""]
# My Custom Params #
authorBug = "Chad Michael \"Bug\" Greenwood"
authorHyperling = "Chad Michael \"Hyperling\" Greenwood"
authorHyperVegan = "Chad Michael \"HyperVegan\" Greenwood"
# End My Custom Params #
[taxonomies] [taxonomies]
categories = "categories" categories = "categories"
tags = "tags" tags = "tags"

View File

@@ -0,0 +1,15 @@
{{ $author := .Page.Params.author
}}{{ if or (eq $author "authorBug") (eq $author "bug")
}}{{ .Scratch.Set "author" .Site.Params.authorBug
}}{{ else if or (eq $author "authorHyperling") (eq $author "hyperling")
}}{{ .Scratch.Set "author" .Site.Params.authorHyperling
}}{{ else if or (eq $author "authorHyperVegan") (eq $author "hypervegan")
}}{{ .Scratch.Set "author" .Site.Params.authorHyperVegan
}}{{ else
}}{{ .Scratch.Set "author" $author
}}{{ end
}}{{ $author := .Scratch.Get "author"
}}{{ if $author
}}{{ print "by " $author
}}{{ end
}}

View File

@@ -17,7 +17,7 @@
<strong>{{ .Params.subtitle | markdownify }}</strong> <strong>{{ .Params.subtitle | markdownify }}</strong>
{{ end }} {{ end }}
{{ if .Params.author }} {{ if .Params.author }}
<pre>by {{ .Params.author }}</pre> <pre>{{ partial "author.html" . }}</pre>
{{ end }} {{ end }}
{{ if .Params.Cover }} {{ if .Params.Cover }}

View File

@@ -0,0 +1,25 @@
{{ $src := .Get "src" | default (.Get 0)
}}
{{ $type := .Get "type"
}}{{ if and (isset .Params "type") (not (eq $type ""))
}}{{ .Scratch.Set "type" $type
}}{{ else
}}{{ $type := strings.TrimSuffix $src (path.Ext $src)
}}{{ $type := strings.TrimPrefix "." $type
}}{{ .Scratch.Set "type" $type
}}{{ end
}}
{{ $text := .Get "text"
}}{{ if and (isset .Params "text") (not (eq $text ""))
}}{{ .Scratch.Set "text" $text
}}{{ else
}}{{ .Scratch.Set "text" "Audio playback is not available on your browser."
}}{{ end
}}
<audio controls>
<source
src='{{ $src }}'
type='audio/{{ .Scratch.Get "type" }}'
>
{{ .Scratch.Get "text" }}
</audio>

View File

@@ -1,7 +1,15 @@
{{ if eq (.Get 0) "bug" }} {{ $author := .Get 0
{{ print "Bug" }} }}{{ if or (eq $author "authorBug") (eq $author "bug")
{{ else if eq (.Get 0) "hyperling" }} }}{{ .Scratch.Set "author" .Site.Params.authorBug
{{ print "Hyperling" }} }}{{ else if or (eq $author "authorHyperling") (eq $author "hyperling")
{{ else if eq (.Get 0) "hypervegan" }} }}{{ .Scratch.Set "author" .Site.Params.authorHyperling
{{ print "HyperVegan" }}' }}{{ else if or (eq $author "authorHyperVegan") (eq $author "hypervegan")
{{ end }} }}{{ .Scratch.Set "author" .Site.Params.authorHyperVegan
}}{{ else
}}{{ .Scratch.Set "author" $author
}}{{ end
}}{{ $author := .Scratch.Get "author"
}}{{ if $author
}}{{ print "by " $author
}}{{ end
}}