diff --git a/src/_includes/header.njk b/src/_includes/header.njk index 62e07e0..6712fd4 100644 --- a/src/_includes/header.njk +++ b/src/_includes/header.njk @@ -6,7 +6,7 @@ {% endmacro %} diff --git a/src/thoughts.njk b/src/thoughts.njk new file mode 100644 index 0000000..d9b8b3e --- /dev/null +++ b/src/thoughts.njk @@ -0,0 +1,33 @@ +{% extends "base.njk" %} + +{%- block title -%} +Z. Charles Dziura | Weblog +{%- endblock -%} + +{%- block body -%} +{%- import "header.njk" as header -%} + +{{ header.header(page='thoughts') }} + +
+{%- for post in collections.thoughts | reverse -%} +{%- if post.data.type == "thought" -%} +
+
+ + An errant thought... + + + +
+
+ {{ post.content | safe }} +
+ +
+{%- endif -%} +{%- endfor -%} +
+{%- endblock -%} diff --git a/src/thoughts/thoughts.11tydata.js b/src/thoughts/thoughts.11tydata.js index 9b2a2d4..3484d6f 100644 --- a/src/thoughts/thoughts.11tydata.js +++ b/src/thoughts/thoughts.11tydata.js @@ -2,6 +2,7 @@ import { DateTime } from 'luxon'; export default { date: 'git Created', + tags: 'thoughts', type: 'thought', layout: 'thought.njk', permalink: function ({ page }) {