From e758f4d81cdc6ea5a1cf78bcba386a6536370ec8 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Mon, 21 Sep 2020 00:54:01 +0100 Subject: [PATCH] fix(endpoint-micropub): microformats display on post page --- packages/endpoint-micropub/views/post.njk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/endpoint-micropub/views/post.njk b/packages/endpoint-micropub/views/post.njk index 676f4e227..b2c2e71ae 100644 --- a/packages/endpoint-micropub/views/post.njk +++ b/packages/endpoint-micropub/views/post.njk @@ -1,5 +1,11 @@ {% extends "document.njk" %} +{% set microformats %} +```json +{{ post.mf2 | dump(2) | safe }} +``` +{% endset %} + {% block content %} {% if post.properties.audio %} {% for item in post.properties.audio %} @@ -20,6 +26,6 @@ }) }}
{{ __("micropub.microformats") }} -
{{ post.properties.mf2 | dump(2) }}
+ {{ microformats | markdown | safe }}
{% endblock %} \ No newline at end of file