-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from ovlb/feature/eleventy-build
👷♀️ Add Build Process for Definitions YAY
- Loading branch information
Showing
203 changed files
with
10,850 additions
and
3,005 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.DS_Store | ||
node_modules | ||
dist | ||
config.codekit3 | ||
config.codekit3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"includePaths": ["node_modules"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
<article id={{ definition.data.slug }} class="block__word word"> | ||
<article id="{{ definition.data.slug }}" class="block__word word"> | ||
{% definitionFlag definition.data.flag %} | ||
<h3 class="word__title"> | ||
{{ definition.data.title}} | ||
<span class="word__speech">{{ definition.data.speech}}</span> | ||
</h3> | ||
{{ definition.templateContent | safe }} | ||
{# <p>{{ definition.data.alt_words }}</p> #} | ||
{%- if definition.data.alt_words -%} | ||
<h4>Alt words</h4> | ||
<ul class="list-semicolon"> | ||
{% for word in definition.data.alt_words %} | ||
<li>{{ word }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
<div class="word__content"> | ||
{{ definition.templateContent | safe }} | ||
{# <p>{{ definition.data.alt_words }}</p> #} | ||
{%- if definition.data.alt_words -%} | ||
<h4>Alt Words</h4> | ||
<ul class="list-semicolon"> | ||
{% for word in definition.data.alt_words %} | ||
<li>{{ word | linkIfExistsInCollection(collections.definedWords) | safe }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{%- if definition.data.reading -%} | ||
<h4>Further Reading</h4> | ||
<ul class="list-semicolon"> | ||
{% for link in definition.data.reading %} | ||
<li> | ||
<a href="{{link.href}}">{{ link.text }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</div> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div class="auto-grid"> | ||
{% for definition in collections.definedDefinitions %} | ||
{% for definition in collections.definedWords %} | ||
{% include 'components/definition.njk' %} | ||
{% endfor %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<li> | ||
{{ definition.data.title | linkIfExistsInCollection(collections.definedWords) | safe }} | ||
{%- if | ||
definition.data.flag and | ||
definition.data.flag.text and | ||
(definition.data.flag.level == 'avoid') -%} | ||
<span class="flag__red">{{ definition.data.flag.text }}</span> | ||
{% endif %} | ||
{%- if definition.data.sub_terms -%} | ||
<ul class="sub-terms"> | ||
{% for term in definition.data.sub_terms %} | ||
<li | ||
class="subterm" | ||
>{{ term | linkSubTermIfDefined(collections.definedWords) | safe }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<section> | ||
<nav class="" aria-label="Definitions"> | ||
<ol class="multi-column u-no-padding-left list"> | ||
{% for section in collections.tableOfContent %} | ||
<li> | ||
<span class="sub-headline">{{ section.title }}</span> | ||
<ol> | ||
{% for definition in section.definitions %} | ||
{% include 'components/table-of-content-item.njk' %} | ||
{% endfor %} | ||
</ol> | ||
</li> | ||
{% endfor %} | ||
</ol> | ||
</nav> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends 'layouts/base.njk' %} | ||
|
||
{% block content %} | ||
<main> | ||
{{ content | safe }} | ||
{% include 'components/table-of-content.njk' %} | ||
<section> | ||
<h2>Words</h2> | ||
{% include 'components/defintions-list.njk' %} | ||
</section> | ||
</main> | ||
<footer class="site-footer"> | ||
<nav aria-label=""> | ||
<ul class="navigation-list"> | ||
<li><a href="/documentation/">Documentation | ||
</ul> | ||
</nav> | ||
</footer> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends 'layouts/base.njk' %} | ||
{% set pageType = 'Page' %} | ||
|
||
{% block content %} | ||
<div class="small-left-grid"> | ||
<div id="title"> | ||
<a href="/">Self-Defined</a> | ||
<p>A modern dictionary about us.<br>We define our words, but they don't define us.</p> | ||
</div> | ||
<main class="page"> | ||
{%- if parent -%} | ||
<div> | ||
<a href={{ parent.href }}>{{ parent.title }}</a> | ||
</div> | ||
{% endif %} | ||
<h1 class="title__thicc" >{{ title }}</h1> | ||
{{ content | safe }} | ||
</main> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: -normative | ||
slug: -normative | ||
defined: false | ||
sub_terms: | ||
- text: Hetero | ||
full_title: heternormative | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: -passing | ||
slug: -passing | ||
defined: false | ||
sub_terms: | ||
- text: cis- | ||
full_title: cis-passing | ||
- text: female- | ||
full_title: female-passing | ||
- text: white- | ||
full_title: white-passing | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: -phile | ||
slug: -phile | ||
defined: false | ||
sub_terms: | ||
- text: andro- | ||
full_title: andro-phile | ||
- text: gyne- | ||
full_title: gyne-phile | ||
--- |
Oops, something went wrong.