diff options
author | tdro <tdro@noreply.example.com> | 2022-06-17 16:31:53 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-17 16:31:53 -0400 |
commit | a7e31ec150c409c3c4a9bd8a6503dda852a2d103 (patch) | |
tree | 718c023e875c08fe9b0b4f0814d8538b09db5d96 /assets/templates | |
parent | 494ee6f4b0d708c20ed66d946b727159cf90f1c4 (diff) | |
download | canory-a7e31ec150c409c3c4a9bd8a6503dda852a2d103.tar.gz canory-a7e31ec150c409c3c4a9bd8a6503dda852a2d103.tar.bz2 canory-a7e31ec150c409c3c4a9bd8a6503dda852a2d103.zip |
config: Generate authors from configuration
Diffstat (limited to 'assets/templates')
-rw-r--r-- | assets/templates/author.yaml | 16 | ||||
-rw-r--r-- | assets/templates/markdown-frontmatter.yaml | 5 |
2 files changed, 21 insertions, 0 deletions
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 -}} +--- |