feat(11ty): add page layout

This commit is contained in:
Oscar 2019-11-17 22:25:36 +01:00
parent fdc49636e3
commit b615a4c11e
3 changed files with 35 additions and 2 deletions

View 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 %}

View 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 %}

View File

@ -1,5 +1,5 @@
---
layout: layouts/base.njk
layout: layouts/index.njk
---
<section id="introduction" class="auto-grid">