mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-10 21:01:41 +00:00
⚒️ 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:
@ -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 %}
|
||||
|
@ -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' %}
|
||||
|
Reference in New Issue
Block a user