From fd910cb1120f972dc45479a43c2ece2e6f4842be Mon Sep 17 00:00:00 2001 From: Oscar Date: Mon, 11 Nov 2019 23:53:11 +0100 Subject: [PATCH] feat(11ty): base template --- 11ty/_includes/layouts/base.njk | 54 +++++++++++++++++++++++++++++++++ 11ty/index.njk | 26 ++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 11ty/_includes/layouts/base.njk create mode 100644 11ty/index.njk diff --git a/11ty/_includes/layouts/base.njk b/11ty/_includes/layouts/base.njk new file mode 100644 index 00000000..13cec135 --- /dev/null +++ b/11ty/_includes/layouts/base.njk @@ -0,0 +1,54 @@ + + + + + + {{ renderData.title or title or metadata.title }} + + + +
+ {{ content | safe }} +
+

Table of Content

+
    + {% for definition in collections.definitions %} + {% set renderedName %} + {{ definition.data.title}} + {%- if definition.data.flag and (definition.data.flag_type == 'avoid') -%} + {{ definition.data.flag}} + {% endif %} + {% endset %} +
  • + {%- if definition.data.alt_words -%} + {% set linkTarget %} + #{{ definition.data.slug }} + {% endset %} + {{ renderedName | safe }} + {%- else -%} + {{ renderedName }} + {% endif %} +
  • + {% endfor %} +
+
+
+

Words

+ {% for definition in collections.definitions %} +
+

{{ definition.data.title}}

+

{{ definition.data.flag }}

+ {#

{{ definition.data.alt_words }}

#} + {%- if definition.data.alt_words -%} +

Alt words

+
    + {% for word in definition.data.alt_words %} +
  • {{ word }}
  • + {% endfor %} +
+ {% endif %} +
+ {% endfor %} +
+
+ \ No newline at end of file diff --git a/11ty/index.njk b/11ty/index.njk new file mode 100644 index 00000000..772f0102 --- /dev/null +++ b/11ty/index.njk @@ -0,0 +1,26 @@ +--- +layout: layouts/base.njk +--- + +
+
+

Self-Defined

+

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

+
+
+

+ Self-Defined seeks to provide more inclusive, holistic, and fluid definitions to reflect the diverse perspectives of the modern world. +

+

+ With the foundation of vocabulary, we can begin to understand lived experiences of people different than us. Words can provide us with a sense of identify and allow us to find kinship through common experiences. +

+
+
+

Ways to help

+
    +
  1. Submit words and definitions through pull requests.
  2. +
  3. Sponsor this work through GitHub Sponsors.
  4. +
  5. Volunteer writing, design, dev help by DMing me @tatianatmac on Twitter.
  6. +
+
+
\ No newline at end of file