From baddc0cc0e9a2d7c749cf4ceacb23ee8ff956ae9 Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Wed, 3 Feb 2021 21:10:11 -0500 Subject: [PATCH] Add ability to attribute photos in posts --- archetypes/posts.md | 3 +++ layouts/_default/single.html | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/archetypes/posts.md b/archetypes/posts.md index 3e44e17..42f56d7 100644 --- a/archetypes/posts.md +++ b/archetypes/posts.md @@ -13,4 +13,7 @@ resources: src: "" params: description: "" + attribution: + name: "" + link: "" --- diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0c43b52..014eac2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -18,6 +18,13 @@ {{ . }} + {{ with .Params.attribution -}} + Picture by  + {{- with .link }}{{ end -}} + {{- .name -}} + {{- with .link }}{{ end -}} + + {{- end }} {{- end }} {{ if .Params.toc -}}

Contents