diff --git a/src/_includes/components/reply.njk b/src/_includes/components/reply.njk new file mode 100644 index 0000000..c9928c6 --- /dev/null +++ b/src/_includes/components/reply.njk @@ -0,0 +1,13 @@ +{% macro reply(note) %} +
+ + {{ note.text | md | safe }} + {% if note.replies.length %} + + {% endif %} +
+{% endmacro %} \ No newline at end of file diff --git a/src/_includes/note.njk b/src/_includes/note.njk index 407a7b2..29d4d16 100644 --- a/src/_includes/note.njk +++ b/src/_includes/note.njk @@ -1,6 +1,7 @@ --- layout: "base.njk" --- +{% import "components/reply.njk" as replyMacros %}
@@ -11,23 +12,14 @@ layout: "base.njk" {{ content | safe }} -
{{ note.replies | dump }}
- -
\ No newline at end of file