From b615a4c11ed019b6eae9f2a619e790c554119025 Mon Sep 17 00:00:00 2001 From: Oscar Date: Sun, 17 Nov 2019 22:25:36 +0100 Subject: [PATCH] feat(11ty): add page layout --- 11ty/_includes/layouts/index.njk | 19 +++++++++++++++++++ 11ty/_includes/layouts/page.njk | 14 ++++++++++++++ 11ty/index.njk | 4 ++-- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 11ty/_includes/layouts/index.njk create mode 100644 11ty/_includes/layouts/page.njk diff --git a/11ty/_includes/layouts/index.njk b/11ty/_includes/layouts/index.njk new file mode 100644 index 00000000..45504460 --- /dev/null +++ b/11ty/_includes/layouts/index.njk @@ -0,0 +1,19 @@ +{% extends 'layouts/base.njk' %} + +{% block content %} +
+ {{ content | safe }} + {% include 'components/table-of-content.njk' %} +
+

Words

+ {% include 'components/defintions-list.njk' %} +
+
+ +{% endblock %} diff --git a/11ty/_includes/layouts/page.njk b/11ty/_includes/layouts/page.njk new file mode 100644 index 00000000..cf732798 --- /dev/null +++ b/11ty/_includes/layouts/page.njk @@ -0,0 +1,14 @@ +{% extends 'layouts/base.njk' %} +{% set pageType = 'Page' %} + +{% block content %} +
+
+ Self-Defined +

A modern dictionary about us.
We define our words, but they don't define us.

+
+
+

{{ title }}

+ {{ content | safe }} +
+{% endblock %} diff --git a/11ty/index.njk b/11ty/index.njk index 772f0102..00b0828b 100644 --- a/11ty/index.njk +++ b/11ty/index.njk @@ -1,5 +1,5 @@ --- -layout: layouts/base.njk +layout: layouts/index.njk ---
@@ -23,4 +23,4 @@ layout: layouts/base.njk
  • Volunteer writing, design, dev help by DMing me @tatianatmac on Twitter.
  • - \ No newline at end of file +