⚒️ Add a pageStyles block to base template (#98)

* Import typekit fonts as link

* Declare pageStyles block in base template

* Uninstall prism-themes package
This commit is contained in:
EJ Mason
2020-03-19 16:20:47 -07:00
committed by GitHub
parent c39fbd7af6
commit fa5ce187f0
6 changed files with 8 additions and 14 deletions

View File

@ -11,8 +11,10 @@
name="description"
content="{{ renderData.description or description or metadata.description }}"
>
<link rel="stylesheet" href="https://use.typekit.net/qlo3dpu.css" rel="preload"/>
<link rel="stylesheet" href="{{ '/assets/css/base.css' | url }}">
{% block pageStyles %}
{% endblock pageStyles %}
</head>
<body>
{% block content %}{% endblock content %}

View File

@ -1,7 +1,10 @@
{% 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' %}