mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 17:30:00 +00:00
feat(11ty): add page layout
This commit is contained in:
parent
fdc49636e3
commit
b615a4c11e
19
11ty/_includes/layouts/index.njk
Normal file
19
11ty/_includes/layouts/index.njk
Normal file
@ -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 %}
|
14
11ty/_includes/layouts/page.njk
Normal file
14
11ty/_includes/layouts/page.njk
Normal file
@ -0,0 +1,14 @@
|
||||
{% 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">
|
||||
<h1 class="title__thicc" >{{ title }}</h1>
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
{% endblock %}
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
layout: layouts/base.njk
|
||||
layout: layouts/index.njk
|
||||
---
|
||||
|
||||
<section id="introduction" class="auto-grid">
|
||||
@ -23,4 +23,4 @@ layout: layouts/base.njk
|
||||
<li>Volunteer writing, design, dev help by <a href="http://www.twitter.com/tatianatmac">DMing me @tatianatmac on Twitter</a>.</li>
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user