nibula 2.1.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/docs/Components.md +12 -9
- package/docs/Creating pages.md +1 -1
- package/docs/Head and SEO.md +1 -1
- package/docs/Styling with SCSS.md +3 -0
- package/package.json +1 -1
- package/src/frontend/routes/404.njk +5 -1
- package/src/frontend/routes/index.njk +5 -1
- package/src/frontend/scss/_global.scss +3 -0
- package/src/frontend/scss/modules/_markdown.scss +1598 -0
- package/tools/lib/pageActions.js +1 -1
- package/tools/res/templates/template.njk +5 -1
package/tools/lib/pageActions.js
CHANGED
|
@@ -15,7 +15,7 @@ const FRONT_MATTER_PATTERNS = Object.freeze({
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
const ROUTE_FRONT_MATTER_KEYS = ['title', 'permalink'];
|
|
18
|
-
const RENAME_FRONT_MATTER_KEYS = ['permalink'];
|
|
18
|
+
const RENAME_FRONT_MATTER_KEYS = ['title', 'permalink'];
|
|
19
19
|
const LAYOUT_KEY = 'layout';
|
|
20
20
|
|
|
21
21
|
function templatePath(name) {
|
|
@@ -8,4 +8,8 @@ layout: base.njk
|
|
|
8
8
|
{% include "component.njk" ignore missing %}
|
|
9
9
|
|
|
10
10
|
{# Markdown files live in components/ too. Pass the data the file needs #}
|
|
11
|
-
{#
|
|
11
|
+
{#
|
|
12
|
+
<article class="markdown-body">
|
|
13
|
+
{% renderFile "your-file.md" | markdownPath, { site: site } %}
|
|
14
|
+
</article>
|
|
15
|
+
#}
|