attempting to fix whatever json shit its throwing
This commit is contained in:
@@ -45,9 +45,7 @@ imageHeight = 350
|
|||||||
name = "mastodon"
|
name = "mastodon"
|
||||||
url = "https://mastodon.social/@plorbusgutierrez"
|
url = "https://mastodon.social/@plorbusgutierrez"
|
||||||
|
|
||||||
[[params.SocialIcons]]
|
|
||||||
name = 'buymeacoffee'
|
|
||||||
url = "https://buymeacoffee.com"
|
|
||||||
|
|
||||||
[params.homeInfoParams]
|
[params.homeInfoParams]
|
||||||
enabled = false
|
enabled = false
|
||||||
|
|||||||
@@ -0,0 +1,128 @@
|
|||||||
|
{{ if .IsHome }}
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "{{- ( site.Params.schema.publisherType | default "Organization") | title -}}",
|
||||||
|
"name": {{ site.Title }},
|
||||||
|
"url": {{ site.Home.Permalink }},
|
||||||
|
"description": {{ site.Params.description | plainify | truncate 180 | safeHTML }},
|
||||||
|
{{- if (eq site.Params.schema.publisherType "Person") }}
|
||||||
|
"image": {{ site.Params.assets.favicon | default "favicon.ico" | absURL }},
|
||||||
|
{{- else }}
|
||||||
|
"logo": {{ site.Params.assets.favicon | default "favicon.ico" | absURL }},
|
||||||
|
{{- end }}
|
||||||
|
"sameAs": [
|
||||||
|
{{- if site.Params.schema.sameAs }}
|
||||||
|
{{ range $i, $e := site.Params.schema.sameAs }}{{ if $i }}, {{ end }}{{ trim $e " " }}{{ end }}
|
||||||
|
{{- else}}
|
||||||
|
{{ range $i, $e := site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ trim $e.url " " | safeURL }}{{ end }}
|
||||||
|
{{- end}}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
{{- else if (or .IsPage .IsSection) }}
|
||||||
|
{{/* BreadcrumbList */}}
|
||||||
|
{{- $url := replace .Parent.Permalink ( printf "%s" site.Home.Permalink) "" }}
|
||||||
|
{{- $lang_url := strings.TrimPrefix ( printf "%s/" .Lang) $url }}
|
||||||
|
{{- $bc_list := (split $lang_url "/")}}
|
||||||
|
|
||||||
|
{{- $scratch := newScratch }}
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "BreadcrumbList",
|
||||||
|
"itemListElement": [
|
||||||
|
{{- range $index, $element := $bc_list }}
|
||||||
|
|
||||||
|
{{- $scratch.Add "path" (printf "%s/" $element ) | safeJS }}
|
||||||
|
{{- $bc_pg := site.GetPage ($scratch.Get "path") -}}
|
||||||
|
|
||||||
|
{{- if (and ($bc_pg) (gt (len . ) 0))}}
|
||||||
|
{{- if (and $index)}}, {{end }}
|
||||||
|
{
|
||||||
|
"@type": "ListItem",
|
||||||
|
"position": {{ add 1 $index }},
|
||||||
|
"name": {{ $bc_pg.Name }},
|
||||||
|
"item": {{ $bc_pg.Permalink | safeHTML }}
|
||||||
|
}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- end }}
|
||||||
|
{{- /* self-page addition */ -}}
|
||||||
|
{{- if (ge (len $bc_list) 2) }}, {{end }}
|
||||||
|
{
|
||||||
|
"@type": "ListItem",
|
||||||
|
"position": {{len $bc_list}},
|
||||||
|
"name": {{ .Name }},
|
||||||
|
"item": {{ .Permalink | safeHTML }}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
{{- if .IsPage }}
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "BlogPosting",
|
||||||
|
"headline": {{ .Title | plainify}},
|
||||||
|
"name": "{{ .Title | plainify }}",
|
||||||
|
"description": {{ with .Description | plainify }}{{ . }}{{ else }}{{ .Summary | plainify }}{{ end -}},
|
||||||
|
"keywords": [
|
||||||
|
{{- if .Params.keywords }}
|
||||||
|
{{ range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
|
||||||
|
{{- else }}
|
||||||
|
{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
|
||||||
|
{{- end }}
|
||||||
|
],
|
||||||
|
"articleBody": {{ .Content | safeJS | htmlUnescape | plainify }},
|
||||||
|
"wordCount" : "{{ .WordCount }}",
|
||||||
|
"inLanguage": {{ .Language.Lang | default "en-us" }},
|
||||||
|
{{ if .Params.cover.image -}}
|
||||||
|
"image":
|
||||||
|
{{- if (ne .Params.cover.relative true) -}}
|
||||||
|
{{ .Params.cover.image | absURL }},
|
||||||
|
{{- else -}}
|
||||||
|
{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
|
||||||
|
{{- end}}
|
||||||
|
{{- else }}
|
||||||
|
{{- $images := partial "templates/_funcs/get-page-images" . -}}
|
||||||
|
{{- with index $images 0 -}}
|
||||||
|
"image": {{ .Permalink }},
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
"datePublished": {{ .PublishDate }},
|
||||||
|
"dateModified": {{ .Lastmod }},
|
||||||
|
{{- with (.Params.author | default site.Params.author) }}
|
||||||
|
"author":
|
||||||
|
{{- if (or (eq (printf "%T" .) "[]string") (eq (printf "%T" .) "[]interface {}")) -}}
|
||||||
|
[{{- range $i, $v := . -}}
|
||||||
|
{{- if $i }}, {{end -}}
|
||||||
|
{
|
||||||
|
"@type": "Person",
|
||||||
|
"name": {{ $v }}
|
||||||
|
}
|
||||||
|
{{- end }}],
|
||||||
|
{{- else -}}
|
||||||
|
{
|
||||||
|
"@type": "Person",
|
||||||
|
"name": {{ . }}
|
||||||
|
},
|
||||||
|
{{- end -}}
|
||||||
|
{{- end }}
|
||||||
|
"mainEntityOfPage": {
|
||||||
|
"@type": "WebPage",
|
||||||
|
"@id": {{ .Permalink | safeHTML }}
|
||||||
|
},
|
||||||
|
"publisher": {
|
||||||
|
"@type": "{{- ( site.Params.schema.publisherType | default "Organization") | title -}}",
|
||||||
|
"name": {{ site.Title }},
|
||||||
|
"logo": {
|
||||||
|
"@type": "ImageObject",
|
||||||
|
"url": {{ site.Params.assets.favicon | default "favicon.ico" | absURL }}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
{{- end }}{{/* .IsPage end */}}
|
||||||
|
|
||||||
|
{{- end -}}
|
||||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -90,7 +90,7 @@
|
|||||||
<pubDate>Sat, 01 Aug 2026 23:40:44 +0000</pubDate>
|
<pubDate>Sat, 01 Aug 2026 23:40:44 +0000</pubDate>
|
||||||
<guid>//localhost:1313/music/originals/</guid>
|
<guid>//localhost:1313/music/originals/</guid>
|
||||||
<description><p>&ldquo;The Hollow&rdquo;, with The Chicken Street Band at Roots Revival Fest 8/2/24</p>
|
<description><p>&ldquo;The Hollow&rdquo;, with The Chicken Street Band at Roots Revival Fest 8/2/24</p>
|
||||||
<h2 id="hahahugoshortcode100s0hbhb"><figure>
|
<h2 id="hahahugoshortcode17s0hbhb"><figure>
|
||||||
<audio controls preload="metadata" style="width: 100%;">
|
<audio controls preload="metadata" style="width: 100%;">
|
||||||
<source src="//localhost:1313/audio/hollowroots.mp3" type="audio/mpeg">
|
<source src="//localhost:1313/audio/hollowroots.mp3" type="audio/mpeg">
|
||||||
Your browser does not support the audio element.
|
Your browser does not support the audio element.
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
<pubDate>Sat, 01 Aug 2026 23:40:44 +0000</pubDate>
|
<pubDate>Sat, 01 Aug 2026 23:40:44 +0000</pubDate>
|
||||||
<guid>//localhost:1313/music/originals/</guid>
|
<guid>//localhost:1313/music/originals/</guid>
|
||||||
<description><p>&ldquo;The Hollow&rdquo;, with The Chicken Street Band at Roots Revival Fest 8/2/24</p>
|
<description><p>&ldquo;The Hollow&rdquo;, with The Chicken Street Band at Roots Revival Fest 8/2/24</p>
|
||||||
<h2 id="hahahugoshortcode228s0hbhb"><figure>
|
<h2 id="hahahugoshortcode17s0hbhb"><figure>
|
||||||
<audio controls preload="metadata" style="width: 100%;">
|
<audio controls preload="metadata" style="width: 100%;">
|
||||||
<source src="//localhost:1313/audio/hollowroots.mp3" type="audio/mpeg">
|
<source src="//localhost:1313/audio/hollowroots.mp3" type="audio/mpeg">
|
||||||
Your browser does not support the audio element.
|
Your browser does not support the audio element.
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="post-content md-content"><p>“The Hollow”, with The Chicken Street Band at Roots Revival Fest 8/2/24</p>
|
<div class="post-content md-content"><p>“The Hollow”, with The Chicken Street Band at Roots Revival Fest 8/2/24</p>
|
||||||
<h2 id="hahahugoshortcode228s0hbhb"><figure>
|
<h2 id="hahahugoshortcode17s0hbhb"><figure>
|
||||||
<audio controls preload="metadata" style="width: 100%;">
|
<audio controls preload="metadata" style="width: 100%;">
|
||||||
<source src="/audio/hollowroots.mp3" type="audio/mpeg">
|
<source src="/audio/hollowroots.mp3" type="audio/mpeg">
|
||||||
Your browser does not support the audio element.
|
Your browser does not support the audio element.
|
||||||
|
|||||||
+11
-5
@@ -2,10 +2,19 @@
|
|||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
<url>
|
<url>
|
||||||
<loc>//localhost:1313/music/poultryhighway/</loc>
|
<loc>//localhost:1313/music/techno/originals/</loc>
|
||||||
<lastmod>2026-08-02T22:31:41-04:00</lastmod>
|
<lastmod>2026-08-03T10:32:52-04:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>//localhost:1313/</loc>
|
<loc>//localhost:1313/</loc>
|
||||||
|
<lastmod>2026-08-03T10:32:52-04:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>//localhost:1313/music/techno/remixes/</loc>
|
||||||
|
<lastmod>2026-08-03T10:28:19-04:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>//localhost:1313/music/techno/</loc>
|
||||||
|
<lastmod>2026-08-03T10:27:35-04:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>//localhost:1313/music/poultryhighway/</loc>
|
||||||
<lastmod>2026-08-02T22:31:41-04:00</lastmod>
|
<lastmod>2026-08-02T22:31:41-04:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>//localhost:1313/docs/fstab/</loc>
|
<loc>//localhost:1313/docs/fstab/</loc>
|
||||||
@@ -19,9 +28,6 @@
|
|||||||
</url><url>
|
</url><url>
|
||||||
<loc>//localhost:1313/reviews/</loc>
|
<loc>//localhost:1313/reviews/</loc>
|
||||||
<lastmod>2026-08-01T20:03:13+00:00</lastmod>
|
<lastmod>2026-08-01T20:03:13+00:00</lastmod>
|
||||||
</url><url>
|
|
||||||
<loc>//localhost:1313/music/technostuff/</loc>
|
|
||||||
<lastmod>2026-08-01T05:32:29+00:00</lastmod>
|
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>//localhost:1313/docs/cachylove/</loc>
|
<loc>//localhost:1313/docs/cachylove/</loc>
|
||||||
<lastmod>2026-08-01T05:16:03+00:00</lastmod>
|
<lastmod>2026-08-01T05:16:03+00:00</lastmod>
|
||||||
|
|||||||
Reference in New Issue
Block a user