Skip to content

Commit

Permalink
Mitigate #171 by using js front matter type instead of YAML.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Sep 11, 2024
1 parent 4fad5c6 commit 1ad494c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
9 changes: 5 additions & 4 deletions content/about/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
eleventyNavigation:
key: About
order: 3
---js
const eleventyNavigation = {
key: "About",
order: 3
};
---
# About

Expand Down
9 changes: 5 additions & 4 deletions content/blog.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
eleventyNavigation:
key: Archive
order: 2
---js
const eleventyNavigation = {
key: "Archive",
order: 2
};
---
<h1>Archive</h1>

Expand Down
3 changes: 1 addition & 2 deletions content/blog/firstpost.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: This is my first post.
description: This is a post on My Blog about agile frameworks.
date: 2018-05-01
tags:
- another tag
tags: 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.

Expand Down
3 changes: 1 addition & 2 deletions content/blog/secondpost.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
title: This is my second post with a much longer title.
description: This is a post on My Blog about leveraging agile frameworks.
date: 2018-07-04
tags:
- number 2
tags: 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.

Expand Down
4 changes: 1 addition & 3 deletions content/blog/thirdpost.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
title: This is my third post.
description: This is a post on My Blog about win-win survival strategies.
date: 2018-08-24
tags:
- second tag
- posts with two tags
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.

Expand Down
12 changes: 7 additions & 5 deletions content/index.njk
Original file line number Diff line number Diff line change
@@ -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) %}
Expand Down

0 comments on commit 1ad494c

Please sign in to comment.