Switch to TOML frontmatter for content and archetypes

This commit is contained in:
hedy 2024-04-11 11:42:22 +08:00
parent 65ebf1906d
commit bdf4b6bc54
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
16 changed files with 120 additions and 170 deletions

View File

@ -1,11 +1,9 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
outputs:
- html
- gemtext
slug: {{ .Name }}
+++
title = "{{ replace .Name "-" " " | title }}"
date = {{ .Date }}
draft = true
outputs = ['html', 'gemtext']
slug = {{ .Name }}
+++
---

View File

@ -1,15 +1,14 @@
---
+++
{{ $title := slicestr (replace .Name "-" " ") 11 -}}
title: {{ $title | title }}
description: {{ strings.FirstUpper $title }}
highlight: false
draft: true
title = {{ $title | title }}
description = {{ strings.FirstUpper $title }}
highlight = false
draft = true
date: {{ .Date }}
outputs:
- html
- gemtext
slug: {{ slicestr .Name 11 }}
date = {{ .Date }}
draft = true
outputs = ['html', 'gemtext']
slug = {{ slicestr .Name 11 }}
+++
---

View File

@ -1,9 +1,7 @@
---
title: home
outputs:
- html
- gemtext
---
+++
outputs = ['html', 'gemtext']
title = 'home'
+++
<center class="hero" style="margin-bottom: 5rem;">

View File

@ -1,12 +1,9 @@
---
date: 2021-08-03
title: "About"
outputs:
- html
- gemtext
description: "Where people can find me online and software I use"
---
+++
date = '2021-08-03'
description = 'Where people can find me online and software I use'
outputs = ['html', 'gemtext']
title = 'About'
+++
## Places online

View File

@ -1,14 +1,11 @@
---
title: "Tilde.Cafe Spotlight"
date: 2022-03-27T15:50:41+08:00
draft: false
outputs:
- html
- gemtext
slug: cafe-spotlight
description: "Shiny cool stuff by fellow tilde.cafe users"
---
+++
date = '2022-03-27T15:50:41+08:00'
description = 'Shiny cool stuff by fellow tilde.cafe users'
draft = false
outputs = ['html', 'gemtext']
slug = 'cafe-spotlight'
title = 'Tilde.Cafe Spotlight'
+++
View on gemini to check out the spotlight for gemini://tilde.cafe!

View File

@ -1,13 +1,10 @@
---
title: "Misc"
date: 2023-01-25T15:52:35+08:00
draft: false
outputs:
- html
- gemtext
slug: misc
description: "Links to miscellaneous things on this site"
---
+++
date = '2023-01-25T15:52:35+08:00'
description = 'Links to miscellaneous things on this site'
draft = false
outputs = ['html', 'gemtext']
slug = 'misc'
title = 'Misc'
+++
- [~Cafe Spotlight](../cafe-spotlight/) — Showcase of cool things on tilde.cafe

View File

@ -1,14 +1,11 @@
---
title: "Hello"
date: 2021-02-05T01:44:15Z
draft: false
description: "I'm alive!"
tags:
- test
outputs:
- html
- gemtext
---
+++
date = '2021-02-05T01:44:15Z'
description = "I'm alive!"
draft = false
outputs = ['html', 'gemtext']
tags = ['test']
title = 'Hello'
+++
Hello hugo

View File

@ -1,14 +1,11 @@
---
title: "How this site works"
description: "A walkthrough of my workflows for the site and a gentle introduction to tilde.cafe and the Tildeverse."
date: 2021-02-23
draft: false
outputs:
- html
- gemtext
slug: "site-meta"
---
+++
date = '2021-02-23'
description = 'A walkthrough of my workflows for the site and a gentle introduction to tilde.cafe and the Tildeverse.'
draft = false
outputs = ['html', 'gemtext']
slug = 'site-meta'
title = 'How this site works'
+++
<details open>
<summary>2023 Update</summary>

View File

@ -1,16 +1,12 @@
---
title: "On rants about gemini"
date: 2021-06-15
draft: false
tags:
- gemini
outputs:
- html
- gemtext
slug: "on-rants-gemini"
description: "A discussion about Gemini and addressing some of the complaints of the Gemini Protocol seen on the internet recently."
---
+++
date = '2021-06-15'
description = 'A discussion about Gemini and addressing some of the complaints of the Gemini Protocol seen on the internet recently.'
draft = false
outputs = ['html', 'gemtext']
slug = 'on-rants-gemini'
tags = ['gemini']
title = 'On rants about gemini'
+++
Recently there've been some discussions about how Gemini "doesn't fix anything" on Lobste.rs:

View File

@ -1,18 +1,13 @@
---
title: "Managing multiple emails for git across different computers"
outputs:
- html
- gemtext
tags:
- git
- howto
date: 2021-06-16T23:50:00Z
draft: false
slug: "multiple-emails-git"
highlight: true
description: "How to have different git author configurations depending on the computer and have it tracked with dotfiles."
---
+++
date = '2021-06-16T23:50:00Z'
description = 'How to have different git author configurations depending on the computer and have it tracked with dotfiles.'
draft = false
highlight = true
outputs = ['html', 'gemtext']
slug = 'multiple-emails-git'
tags = ['git', 'howto']
title = 'Managing multiple emails for git across different computers'
+++
As someone who code on multiple machines to work on different projects, I like to commit with different emails.

View File

@ -1,15 +1,11 @@
---
title: "Another Test"
date: 2021-06-20T21:33:27+08:00
draft: true
outputs:
- html
- gemtext
tags:
- test
slug: another-test
---
+++
date = '2021-06-20T13:33:27Z'
draft = true
outputs = ['html', 'gemtext']
slug = 'another-test'
tags = ['test']
title = 'Another Test'
+++
this is another test post
it's for testing whether my atom feed for gemini works.

View File

@ -1,17 +1,13 @@
---
title: "Setting up syntax highlighting for Hugo"
highlight: true
date: 2021-08-22
draft: false
outputs:
- html
- gemtext
slug: hugo-syntax-highlighting
tags:
- howto
description: "How I've set up syntax highlighting for my website with dark mode support."
---
+++
date = '2021-08-22'
description = "How I've set up syntax highlighting for my website with dark mode support."
draft = false
highlight = true
outputs = ['html', 'gemtext']
slug = 'hugo-syntax-highlighting'
tags = ['howto']
title = 'Setting up syntax highlighting for Hugo'
+++
Hugo uses [chroma](https://github.com/alecthomas/chroma) as its syntax
highlighter. All you basically need for having your code highlighted is to let

View File

@ -1,17 +1,13 @@
---
title: "Vim visual block mode for column editing"
description: The visual block mode in Vim/Neovim is quite powerful. You can use it for "column" editing and vertically pasting blocks of text similar to paste(1).
date: 2024-04-10T13:22:46+08:00
draft: false
outputs:
- html
- gemtext
tags:
- howto
slug: vim-column-editing
footnotes_heading: Footnotes
---
+++
date = '2024-04-10T05:22:46Z'
description = 'The visual block mode in Vim/Neovim is quite powerful. You can use it for "column" editing and vertically pasting blocks of text similar to paste(1).'
draft = false
footnotes_heading = 'Footnotes'
outputs = ['html', 'gemtext']
slug = 'vim-column-editing'
tags = ['howto']
title = 'Vim visual block mode for column editing'
+++
The visual block mode in Vim lets you edit text simultaneously across adjacent
lines, similar to the "Alt-drag" feature in modern editors, but there's more you

View File

@ -1,12 +1,7 @@
---
title: Posts
outputs:
- html
- gemtext
- gematom
- rss
---
+++
outputs = ['html', 'gemtext', 'gematom', 'rss']
title = 'Posts'
+++
These are my long-form musings. I aim to write at least twice a year, but over
the past two years I have clearly failed in this aspect. I'll try to write more

View File

@ -1,13 +1,10 @@
---
date: 2021-08-03
title: "Projects"
outputs:
- html
- gemtext
description: "My Projects"
draft: true
---
+++
date = '2021-08-03'
description = 'My Projects'
draft = true
outputs = ['html', 'gemtext']
title = 'Projects'
+++
Hey! Thanks for visiting this page! I haven't had the time to write this yet... but you can
have a look at my repos [here](https://sr.ht/~hedy).

View File

@ -1,4 +1,3 @@
---
title: "all tags"
---
+++
title = 'all tags'
+++