aboutsummaryrefslogtreecommitdiff
path: root/assets/templates
diff options
context:
space:
mode:
Diffstat (limited to 'assets/templates')
-rw-r--r--assets/templates/author.yaml15
-rw-r--r--assets/templates/markdown-feed.yaml19
2 files changed, 24 insertions, 10 deletions
diff --git a/assets/templates/author.yaml b/assets/templates/author.yaml
index 0a0f458..ae7bf40 100644
--- a/assets/templates/author.yaml
+++ b/assets/templates/author.yaml
@@ -1,16 +1,23 @@
---
name: {{ .Name }}
user: {{ .User }}
-blogtitle: {{ .Name }}'s Micro Blog
+title: {{ .Name }}'s Micro Blog
wordlimit: 50
place: Nowhere
domain:
host: example.com
url: https://example.com
+# Accepts file path or URL
+# header: /media/header.jpg
+# picture: https://example.com/media/picture.jpg
+picture:
+ header:
+ profile:
epoch: Just now
description: >
- I am a nobody. Copy this [example configuration](/data/generates/authors/{{ .User }}.yaml)
- to `data/{{ .User }}.yaml` and make me a somebody.
-webring:
+ I am a nobody. Copy this [example
+ configuration](/data/generates/authors/{{ .User }}.yaml) to
+ `data/{{ .User }}.yaml` and make me a [somebody](/data/default.yaml).
+feeds:
rss:
json:
diff --git a/assets/templates/markdown-feed.yaml b/assets/templates/markdown-feed.yaml
index 33118da..ff0aae5 100644
--- a/assets/templates/markdown-feed.yaml
+++ b/assets/templates/markdown-feed.yaml
@@ -21,12 +21,19 @@ feed:
{{ end -}}
---
-{{ $content := .content | replaceRE "{" "{" | replaceRE "}" "}" -}}
-{{ $content }} [Read More →]({{ .link }})
+{{ $content := .content }}
+
+{{- $content = replace $content "{" "{" -}}
+{{- $content = replace $content "}" "}" -}}
+{{- $content = replace $content "[" "[" -}}
+{{- $content = replace $content "]" "]" -}}
+
+{{ $content }}
+
+{{- $caption := "Image/Picture" -}}
-{{- $enclosureDescription := "Image/Picture" -}}
{{- with $content -}}
- {{ $enclosureDescription = $content | truncate 80 "" }}
+ {{ $caption = $content | truncate 80 "" }}
{{- end }}
{{ with .enclosure -}}
@@ -43,8 +50,8 @@ feed:
(in . ".svg")
(in . ".webp")
-}}
-![{{ $enclosureDescription }}]({{ . }} "
- {{ $enclosureDescription }}"
+![{{ $caption }}]({{ . }} "
+ {{ $caption }}"
)
{{- end -}}
{{- end }}