Mitigate #171 by using js front matter type instead of YAML.
This commit is contained in:
1 parent
4fad5c6888
commit
1ad494cfd2
6 files changed
+20
-20
No files matched your search
+7
-5
@@ -1,8 +1,10 @@
|
||||
---
|
||||
eleventyNavigation:
|
||||
key: Home
|
||||
order: 1
|
||||
numberOfLatestPostsToShow: 3
|
||||
---js
|
||||
const eleventyNavigation = {
|
||||
key: "Home",
|
||||
order: 1
|
||||
};
|
||||
|
||||
const numberOfLatestPostsToShow = 3;
|
||||
---
|
||||
{% set postsCount = collections.posts | length %}
|
||||
{% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %}
|
||||
|
||||
Reference in new issue
Block a user