refactor: reduce leading spaces of YAML frontmatters from 4 to 2

This commit is contained in:
2025-12-30 22:44:46 +08:00
parent 697d4966a4
commit 7629f59882
7 changed files with 27 additions and 27 deletions

View File

@@ -4,10 +4,10 @@ layout: layouts/content
tags: blog pages
hasBreadcrumbs: true
eleventyNavigation:
key: Blog Posts
title: Archive
parent: Blog
order: 3
key: Blog Posts
title: Archive
parent: Blog
order: 3
---
{{ set postList = collections.posts |> toReversed }}
{{ include "partials/postslist.vto" }}

View File

@@ -1,17 +1,17 @@
---
pagination:
data: collections.topics
size: 1
alias: topic
addAllPagesToCollections: true
data: collections.topics
size: 1
alias: topic
addAllPagesToCollections: true
permalink: /blog/topics/{{ topic |> slugify }}/
layout: layouts/content
hasBreadcrumbs: true
eleventyComputed:
title: 'Blog Post Topic: "{{ topic }}"'
eleventyNavigation:
key: "{{ topic }}"
parent: Blog Topics
title: 'Blog Post Topic: "{{ topic }}"'
eleventyNavigation:
key: "{{ topic }}"
parent: Blog Topics
---
{{ set postCount = collections.posts |> filterByTopic(topic) |> itemCount }}
<h2 class="blog__cat--title">{{ postCount }} Posts Filed Under "{{ topic }}"</h2>

View File

@@ -4,18 +4,18 @@ title: Blog Post Topics
tags: blog pages
hasBreadcrumbs: true
eleventyNavigation:
key: Blog Topics
title: Topics
parent: Blog
order: 2
key: Blog Topics
title: Topics
parent: Blog
order: 2
---
<ul>
{{ for topic of collections.topics }}
{{ for topic of collections.topics }}
{{ set topicUrl }}/blog/topics/{{ topic |> slugify }}/{{ /set }}
{{ set topicPostCount = collections.posts |> filterByTopic(topic) |> itemCount }}
<li><a href="{{ topicUrl }}">{{ topic }}</a> ({{ topicPostCount }} posts)</li>
{{ /for }}
{{ /for }}
</ul>
<p>See all blog posts in the <a href="posts.vto">archive</a>.</p>

View File

@@ -3,8 +3,8 @@ title: About
isArticle: true
toc: true
eleventyNavigation:
key: About
order: 1
key: About
order: 1
---
## Introduction
@@ -41,4 +41,4 @@ Technical information about this website can be found on [its colophon page](/co
## Tip Jar
I accept tips, so if you would like to suuport my work, you can [buy me a coffee](https://buymeacoffee.com/helenchong).
I accept tips, so if you would like to suuport my work, you can [buy me a coffee](https://buymeacoffee.com/helenchong).

View File

@@ -2,8 +2,8 @@
title: Contact
pageTitle: Contact Me
eleventyNavigation:
key: Contact
order: 5
key: Contact
order: 5
---
<p>Want to get in touch with me? I am always open to connect with more people, so feel free to reach out by filling out the email contact form below.</p>

View File

@@ -2,8 +2,8 @@
title: Projects
pageTitle: Featured Projects
eleventyNavigation:
key: Projects
order: 3
key: Projects
order: 3
---
<div class="project-list">

View File

@@ -1,8 +1,8 @@
---
title: Speaking
eleventyNavigation:
key: Speaking
order: 4
key: Speaking
order: 4
---
<p>List of tech events I hae spoken at.</p>