Skip to content

Commit

Permalink
fix(endpoint-micropub): microformats display on post page
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Sep 20, 2020
1 parent f67c28f commit e758f4d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/endpoint-micropub/views/post.njk
Original file line number Diff line number Diff line change
@@ -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 %}
Expand All @@ -20,6 +26,6 @@
}) }}
<details>
<summary>{{ __("micropub.microformats") }}</summary>
<pre>{{ post.properties.mf2 | dump(2) }}</pre>
{{ microformats | markdown | safe }}
</details>
{% endblock %}

0 comments on commit e758f4d

Please sign in to comment.