From a7e31ec150c409c3c4a9bd8a6503dda852a2d103 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 17 Jun 2022 16:31:53 -0400 Subject: config: Generate authors from configuration --- assets/templates/author.yaml | 16 ++++++++++++++++ assets/templates/markdown-frontmatter.yaml | 5 +++++ 2 files changed, 21 insertions(+) create mode 100644 assets/templates/author.yaml create mode 100644 assets/templates/markdown-frontmatter.yaml (limited to 'assets/templates') diff --git a/assets/templates/author.yaml b/assets/templates/author.yaml new file mode 100644 index 0000000..0a0f458 --- /dev/null +++ b/assets/templates/author.yaml @@ -0,0 +1,16 @@ +--- +name: {{ .Name }} +user: {{ .User }} +blogtitle: {{ .Name }}'s Micro Blog +wordlimit: 50 +place: Nowhere +domain: + host: example.com + url: https://example.com +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: + rss: + json: diff --git a/assets/templates/markdown-frontmatter.yaml b/assets/templates/markdown-frontmatter.yaml new file mode 100644 index 0000000..9d8e2a6 --- /dev/null +++ b/assets/templates/markdown-frontmatter.yaml @@ -0,0 +1,5 @@ +--- +{{ range $key, $value := . -}} +{{- $key }}: {{ $value }} +{{ end -}} +--- -- cgit v1.2.3