Mitigate #171 by using js front matter type instead of YAML.

This commit is contained in:
Zach Leatherman 2024-09-11 16:34:56 -05:00
parent 4fad5c6888
commit 1ad494cfd2
6 changed files with 20 additions and 20 deletions

View File

@ -1,7 +1,8 @@
--- ---js
eleventyNavigation: const eleventyNavigation = {
key: About key: "About",
order: 3 order: 3
};
--- ---
# About # About

View File

@ -1,7 +1,8 @@
--- ---js
eleventyNavigation: const eleventyNavigation = {
key: Archive key: "Archive",
order: 2 order: 2
};
--- ---
<h1>Archive</h1> <h1>Archive</h1>

View File

@ -2,8 +2,7 @@
title: This is my first post. title: This is my first post.
description: This is a post on My Blog about agile frameworks. description: This is a post on My Blog about agile frameworks.
date: 2018-05-01 date: 2018-05-01
tags: tags: another tag
- another tag
--- ---
Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment. Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment.

View File

@ -2,8 +2,7 @@
title: This is my second post with a much longer title. title: This is my second post with a much longer title.
description: This is a post on My Blog about leveraging agile frameworks. description: This is a post on My Blog about leveraging agile frameworks.
date: 2018-07-04 date: 2018-07-04
tags: tags: number 2
- number 2
--- ---
Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment. Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment.

View File

@ -2,9 +2,7 @@
title: This is my third post. title: This is my third post.
description: This is a post on My Blog about win-win survival strategies. description: This is a post on My Blog about win-win survival strategies.
date: 2018-08-24 date: 2018-08-24
tags: tags: ["second tag", "posts with two tags"]
- second tag
- posts with two tags
--- ---
Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment. Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment.

View File

@ -1,8 +1,10 @@
--- ---js
eleventyNavigation: const eleventyNavigation = {
key: Home key: "Home",
order: 1 order: 1
numberOfLatestPostsToShow: 3 };
const numberOfLatestPostsToShow = 3;
--- ---
{% set postsCount = collections.posts | length %} {% set postsCount = collections.posts | length %}
{% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %} {% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %}