From a8efa94741d43ca9577b01e2f1bdfbc5ed88e067 Mon Sep 17 00:00:00 2001 From: Kurt Kemple Date: Fri, 20 May 2022 15:22:08 -0400 Subject: [PATCH 1/4] initial changes --- .../_includes/components/base/site-header.njk | 18 +++++++++++ 11ty/_includes/layouts/base.njk | 1 + 11ty/_includes/layouts/dictionary.njk | 30 +++++++++++++++++++ 11ty/_includes/layouts/index.njk | 22 -------------- 11ty/dictionary.njk | 9 ++++++ 11ty/index.njk | 7 ++--- assets/css/structures/_header.scss | 21 +++++++++++-- 7 files changed, 79 insertions(+), 29 deletions(-) create mode 100644 11ty/_includes/components/base/site-header.njk create mode 100644 11ty/_includes/layouts/dictionary.njk create mode 100644 11ty/dictionary.njk diff --git a/11ty/_includes/components/base/site-header.njk b/11ty/_includes/components/base/site-header.njk new file mode 100644 index 000000000..afb60ce4c --- /dev/null +++ b/11ty/_includes/components/base/site-header.njk @@ -0,0 +1,18 @@ + diff --git a/11ty/_includes/layouts/base.njk b/11ty/_includes/layouts/base.njk index d5e22d5ff..ec1762a4b 100644 --- a/11ty/_includes/layouts/base.njk +++ b/11ty/_includes/layouts/base.njk @@ -58,6 +58,7 @@ document.documentElement.removeAttribute('data-user-theme'); } + {% include 'components/base/site-header.njk' %} {% block content %}{% endblock content %} {% include 'components/base/site-footer.njk' %} {% block pageScript %} diff --git a/11ty/_includes/layouts/dictionary.njk b/11ty/_includes/layouts/dictionary.njk new file mode 100644 index 000000000..87a32106e --- /dev/null +++ b/11ty/_includes/layouts/dictionary.njk @@ -0,0 +1,30 @@ +{% extends 'layouts/base.njk' %} +{% set titleWithPath = 'Dictionary « ' %} + +{% block content %} +
+ {{ content | safe }} + {% include 'components/table-of-content.njk' %} + +
+{% endblock %} + + +{% block pageScript%} + +{% endblock %} diff --git a/11ty/_includes/layouts/index.njk b/11ty/_includes/layouts/index.njk index c6ae1bb60..e3709444b 100644 --- a/11ty/_includes/layouts/index.njk +++ b/11ty/_includes/layouts/index.njk @@ -4,28 +4,6 @@ {% block content %}
{{ content | safe }} - {% include 'components/table-of-content.njk' %} -
{% endblock %} - - -{% block pageScript%} - -{% endblock %} diff --git a/11ty/dictionary.njk b/11ty/dictionary.njk new file mode 100644 index 000000000..fb3444919 --- /dev/null +++ b/11ty/dictionary.njk @@ -0,0 +1,9 @@ +--- +layout: layouts/dictionary.njk +--- + +
+

+ Should provide high-level instructions for using the dictionary. +

+
diff --git a/11ty/index.njk b/11ty/index.njk index 2ac5c4b5d..8e615086a 100644 --- a/11ty/index.njk +++ b/11ty/index.njk @@ -2,10 +2,7 @@ layout: layouts/index.njk --- -
-

- Self-Defined -

+

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

@@ -23,4 +20,4 @@ layout: layouts/index.njk

  • Follow us on Twitter @SelfDefinedApp.
  • -
    + diff --git a/assets/css/structures/_header.scss b/assets/css/structures/_header.scss index 20ecffb1b..519983f2f 100644 --- a/assets/css/structures/_header.scss +++ b/assets/css/structures/_header.scss @@ -1,5 +1,22 @@ -.summary { - grid-column: span 2; +.site-header { + align-items: center; + display: flex; + justify-content: space-between; + + .navigation-list { + align-items: center; + display: flex; + justify-content: flex-end; + + li { + margin-right: 0.5em; + padding-bottom: 0; + + :last-child { + margin-right: 0; + } + } + } } From 3ffd5e10ca7473916a9cbc7e364e487123878ddb Mon Sep 17 00:00:00 2001 From: Kurt Kemple Date: Fri, 20 May 2022 16:41:56 -0400 Subject: [PATCH 2/4] change documentation to contribute --- .../_includes/components/base/site-footer.njk | 3 --- .../_includes/components/base/site-header.njk | 6 ++--- 11ty/_includes/layouts/about.njk | 9 ++++++++ .../{documentation.njk => contribute.njk} | 2 +- 11ty/about.njk | 23 +++++++++++++++++++ .../contribute.json} | 0 .../development.md | 0 .../examples/basic.md | 2 +- .../examples/examples.json | 0 .../examples/flagged-word.md | 2 +- .../examples/index.md | 4 ++-- .../frequently-asked-questions.njk | 4 ++-- .../front-matter.md | 12 +++++----- 11ty/{documentation => contribute}/index.md | 2 +- 11ty/index.njk | 20 ++-------------- assets/css/structures/_header.scss | 11 ++++++++- 16 files changed, 61 insertions(+), 39 deletions(-) create mode 100644 11ty/_includes/layouts/about.njk rename 11ty/_includes/layouts/{documentation.njk => contribute.njk} (90%) create mode 100644 11ty/about.njk rename 11ty/{documentation/documentation.json => contribute/contribute.json} (100%) rename 11ty/{documentation => contribute}/development.md (100%) rename 11ty/{documentation => contribute}/examples/basic.md (92%) rename 11ty/{documentation => contribute}/examples/examples.json (100%) rename 11ty/{documentation => contribute}/examples/flagged-word.md (99%) rename 11ty/{documentation => contribute}/examples/index.md (88%) rename 11ty/{documentation => contribute}/frequently-asked-questions.njk (97%) rename 11ty/{documentation => contribute}/front-matter.md (96%) rename 11ty/{documentation => contribute}/index.md (96%) diff --git a/11ty/_includes/components/base/site-footer.njk b/11ty/_includes/components/base/site-footer.njk index 245c47de8..2b2c9c617 100644 --- a/11ty/_includes/components/base/site-footer.njk +++ b/11ty/_includes/components/base/site-footer.njk @@ -1,9 +1,6 @@