selfdefined/11ty/_includes/layouts/documentation.njk
EJ Mason fa5ce187f0
⚒️ Add a pageStyles block to base template (#98)
* Import typekit fonts as link

* Declare pageStyles block in base template

* Uninstall prism-themes package
2020-03-19 16:20:47 -07:00

21 lines
642 B
Plaintext

{% extends 'layouts/base.njk' %}
{% set pageType = 'Page' %}
{% set titleWithPath = title + ' « Documentation « ' %}
{% block pageStyles %}
{# Code highlighting #}
<link rel="stylesheet" href="https://unpkg.com/prism-themes@^1.3/themes/prism-a11y-dark.css"/>
{% endblock %}
{% block content %}
<div class="article-content">
{% include 'components/sub-page-header.njk' %}
<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 %}