force nunjucks as markdown template engine
This commit is contained in:
@ -79,6 +79,7 @@ module.exports = function (eleventyConfig) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
passthroughFileCopy: true,
|
passthroughFileCopy: true,
|
||||||
|
markdownTemplateEngine: "njk",
|
||||||
dir: {
|
dir: {
|
||||||
input: "src",
|
input: "src",
|
||||||
output: "public",
|
output: "public",
|
||||||
|
@ -5,7 +5,7 @@ eleventyImport.collections: ["blog"]
|
|||||||
---
|
---
|
||||||
|
|
||||||
<div class="pages-article">
|
<div class="pages-article">
|
||||||
{% for post in collections.blog reversed %}
|
{% for post in collections.blog | reverse %}
|
||||||
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/blog/{{ post.data.page.fileSlug }})
|
\- [{{post.data.title or post.data.page.fileSlug }}](/blog/{{ post.data.page.fileSlug }})
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
@ -5,7 +5,7 @@ eleventyImport.collections: ["games"]
|
|||||||
---
|
---
|
||||||
|
|
||||||
<div class="pages-article">
|
<div class="pages-article">
|
||||||
{% for post in collections.game reversed %}
|
{% for post in collections.game | reverse %}
|
||||||
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/game/{{ post.data.page.fileSlug }})
|
\- [{{ post.data.title or post.data.page.fileSlug }}](/game/{{ post.data.page.fileSlug }})
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
@ -5,7 +5,7 @@ eleventyImport.collections: ["list"]
|
|||||||
---
|
---
|
||||||
|
|
||||||
<div class="pages-article">
|
<div class="pages-article">
|
||||||
{% for post in collections.list reversed %}
|
{% for post in collections.list | reverse %}
|
||||||
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/list/{{ post.data.page.fileSlug }})
|
\- [{{ post.data.title or post.data.page.fileSlug }}](/list/{{ post.data.page.fileSlug }})
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
@ -5,7 +5,7 @@ eleventyImport.collections: ["music"]
|
|||||||
---
|
---
|
||||||
|
|
||||||
<div class="pages-article">
|
<div class="pages-article">
|
||||||
{% for post in collections.music reversed %}
|
{% for post in collections.music | reverse %}
|
||||||
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/music/{{ post.data.page.fileSlug }})
|
\- [{{ post.data.title or post.data.page.fileSlug }}](/music/{{ post.data.page.fileSlug }})
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div>
|
<div>
|
@ -6,7 +6,7 @@ title: pages
|
|||||||
{% for tag in collections.tagsList %}
|
{% for tag in collections.tagsList %}
|
||||||
{{tag}}
|
{{tag}}
|
||||||
{% for post in collections[tag] %}
|
{% for post in collections[tag] %}
|
||||||
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
|
\- [{{ post.data.title or post.data.page.fileSlug }}](/{{ tag }}/{{ post.data.page.fileSlug }})
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
Reference in New Issue
Block a user