Set Nunjucks as the default Markdown template engine

This commit is contained in:
Helen Chong 2024-09-14 21:14:07 +08:00
parent c18644199f
commit ceb766e660
10 changed files with 2 additions and 9 deletions

View File

@ -41,6 +41,7 @@ export default function(eleventyConfig) {
eleventyConfig.addBundle("js", { toFileDirectory: "assets/js" });
return {
markdownTemplateEngine: "njk",
dir: {
input: "src"
}

View File

@ -3,7 +3,7 @@
<nav aria-labelledby="breadcrumbs-title">
<h2 class="visually-hidden" id="breadcrumbs-title">Breadcrumbs</h2>
<ol class="breadcrumbs">
{% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(articleTitle or pageTitle or title) %}
{% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(eleventyNavigation.key or articleTitle or pageTitle or title) %}
{%- for entry in breadcrumbNavPages %}
<li>
<a href="{{ entry.url }}">{{ entry.title }}</a>

View File

@ -3,7 +3,6 @@ layout: main/changelogs
title: Website Layout Archive
desc: An archive for the page layout designs mt website has used.
changelogNav: Website Layouts
templateEngineOverride: njk, md
toc: true
eleventyNavigation:
order: 1

View File

@ -2,7 +2,6 @@
title: My Music Playlists
desc: Music playlists that I have created.
toc: true
templateEngineOverride: njk, md
eleventyNavigation:
order: 3
---

View File

@ -3,7 +3,6 @@ title: "My Mods for Star Wars: Knights of the Old Republic"
desc: "List of video game mods I have made for Star Wars: Knights of the Old Republic."
categories: ["star wars kotor"]
date: 2022-09-11
templateEngineOverride: njk, md
toc: true
eleventyNavigation:
order: 1

View File

@ -3,7 +3,6 @@ title: "My Mods for Star Wars: Knights of the Old Republic II: The Sith Lords"
desc: "List of video game mods I have made for Star Wars: Knights of the Old Republic II: The Sith Lords."
categories: ["star wars kotor 2"]
date: 2022-09-11
templateEngineOverride: njk, md
toc: true
eleventyNavigation:
order: 2

View File

@ -5,7 +5,6 @@ pageTitle: A Summers End — Hong Kong 1986 Playlists
desc: List of A Summers End — Hong Kong 1986 playlists.
tags: a summers end shrine page
toc: true
templateEngineOverride: njk, md
eleventyNavigation:
key: Playlists
parent: A Summers End Shrine

View File

@ -4,7 +4,6 @@ tags: ["shrine home", "contents"]
categories: ["shrines", "cassette beasts"]
title: Cassette Beasts Shrine
date: 2023-08-03
templateEngineOverride: njk, md
isContentDivided: true
toc: true
eleventyNavigation:

View File

@ -5,7 +5,6 @@ pageTitle: Cassette Beasts Game Log
desc: A catalogue of my Cassette Beasts characters and save profiles.
tags: cassette beasts shrine page
toc: true
templateEngineOverride: njk, md
eleventyNavigation:
key: Cassette Beasts Game Log
parent: Cassette Beasts Shrine

View File

@ -5,7 +5,6 @@ pageTitle: "Leilukin's Star Wars: Knights of the Old Republic Universes"
desc: "My universes and headcanons for Star Wars: Knights of the Old Republic series."
tags: kotor shrine page
categories: ["star wars kotor", "star wars kotor 2"]
templateEngineOverride: njk, md
toc: true
eleventyNavigation:
key: KotOR Universes