Compare commits
8 Commits
03738c6660
...
d8ef8a370a
| Author | SHA1 | Date | |
|---|---|---|---|
| d8ef8a370a | |||
| 3f2b174a93 | |||
| 53deccc716 | |||
| 500eee955d | |||
| 0471787ed5 | |||
| 303d51066a | |||
| e67709bb0d | |||
| a9377c0817 |
@@ -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" >}}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
15
layouts/partials/author.html
Normal file
15
layouts/partials/author.html
Normal 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
|
||||||
|
}}
|
||||||
@@ -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 }}
|
||||||
|
|||||||
25
layouts/shortcodes/audio.html
Normal file
25
layouts/shortcodes/audio.html
Normal 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>
|
||||||
@@ -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
|
||||||
|
}}
|
||||||
Reference in New Issue
Block a user