Add blank and podroll pages; implement redirect for preferred pronouns
This commit is contained in:
9
content/blank.md
Normal file
9
content/blank.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
title: "Blank"
|
||||||
|
type: page
|
||||||
|
specialpost: true
|
||||||
|
allpage: true
|
||||||
|
summary: This page intentionally left blank
|
||||||
|
---
|
||||||
|
|
||||||
|
This page intentionally left blank
|
||||||
8
content/podroll.md
Normal file
8
content/podroll.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
title: "Podroll"
|
||||||
|
type: page
|
||||||
|
specialpost: true
|
||||||
|
allpage: true
|
||||||
|
summary: A list of my favorites podcast
|
||||||
|
---
|
||||||
|
{{< opmlpodroll >}}
|
||||||
13
content/redirect/guy/index.md
Normal file
13
content/redirect/guy/index.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
+++
|
||||||
|
# For example, to Redirect from /old_blog to /blog, set
|
||||||
|
# url to "/old_blog" and redirect_to to "/blog" below
|
||||||
|
title = "Preferred Pronoun"
|
||||||
|
type = "redirect"
|
||||||
|
url = "/guy"
|
||||||
|
redirect_to = "https://en.pronouns.page/@fundor333"
|
||||||
|
redirect_enabled = true
|
||||||
|
private = true
|
||||||
|
aliases = ["preferred-pronoun"]
|
||||||
|
allpage = true
|
||||||
|
summary = "My preferred pronouns"
|
||||||
|
+++
|
||||||
17
layouts/shortcodes/opmlpodroll.html
Normal file
17
layouts/shortcodes/opmlpodroll.html
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{{ $url := "https://appletune.fundor333.com/api/podrollgroup/?format=json" }}
|
||||||
|
|
||||||
|
{{ with resources.GetRemote $url }}
|
||||||
|
{{- $content := .Content | transform.Unmarshal -}}
|
||||||
|
|
||||||
|
{{- range $content -}}
|
||||||
|
<h2>{{ .name }}</h2>
|
||||||
|
<ul>
|
||||||
|
{{- range .rows }}
|
||||||
|
<li><a href='{{.url}}'>{{.name}}</a> {{ with .feed_url }} (<a href='{{ . }}'>feed</a>)</li> {{ end }}
|
||||||
|
|
||||||
|
{{ end}}
|
||||||
|
</ul>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
Reference in New Issue
Block a user