From f3dfd3411a389898df860916e12b512881916efc Mon Sep 17 00:00:00 2001 From: Ro Date: Mon, 26 Apr 2021 13:19:47 -0700 Subject: [PATCH] added meta data to page template --- brain/data/Render.inc.php | 5 +++-- content/themes/fipamo-default/page.twig | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/brain/data/Render.inc.php b/brain/data/Render.inc.php index a67475c..51ed995 100644 --- a/brain/data/Render.inc.php +++ b/brain/data/Render.inc.php @@ -55,13 +55,14 @@ class Render foreach ($taglist as $tag) { $label = trim($tag); array_push($tags, [ - "tag_name" => $label, + "label" => $label . " ", "slug" => StringTools::safeString($label), ]); } + $meta = [ "who" => $page["author"], - "when" => $page["updated"], + "when" => $page["created"], "tags" => $tags, ]; diff --git a/content/themes/fipamo-default/page.twig b/content/themes/fipamo-default/page.twig index 434b8a6..6d9852d 100644 --- a/content/themes/fipamo-default/page.twig +++ b/content/themes/fipamo-default/page.twig @@ -13,6 +13,14 @@

{{content | raw}}

+
+ + {{meta['who']}} dropped this {{ meta['when'] }}
+ tags: + {% for tag in meta['tags'] %} + {{ tag.label }} + {% endfor %} +
{% endblock %} \ No newline at end of file