Skip to content

Commit e4cad19

Browse files
fix: add fmContentType to blog content and add to archetype
see estruyf/vscode-front-matter#908
1 parent 04b8945 commit e4cad19

File tree

159 files changed

+1855
-1182
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+1855
-1182
lines changed

archetypes/blog/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ type: blog
3636

3737
unsplash:
3838
imageid: abcdefghijk
39+
40+
fmContentType: blog
3941
---

content/blog/2021/another-new-beginning/index.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
22
title: (Another) new beginning
3-
date: 2021-10-21T20:00:00+07:00
3+
date: 2021-10-21T13:00:00.000Z
44
description: A short summary of how we got here and where we go from here.
55
keywords: []
66
resources:
7-
- src: ave-calvar-HcUDHJfd5GY-unsplash.jpg
8-
title: Photo by [Ave Calvar](https://unsplash.com/es/@3tnik) via [Unsplash](https://unsplash.com)
7+
- src: ave-calvar-HcUDHJfd5GY-unsplash.jpg
8+
title: >-
9+
Photo by [Ave Calvar](https://unsplash.com/es/@3tnik) via
10+
[Unsplash](https://unsplash.com)
911
tags:
10-
- davidsneighbour
11-
- me-now
12+
- davidsneighbour
13+
- me-now
1214
unsplash:
1315
imageid: HcUDHJfd5GY
14-
lastmod: 2024-03-03T21:36:19+07:00
16+
lastmod: 2024-03-03T14:36:19.000Z
1517
type: blog
18+
fmContentType: blog
1619
---
1720

1821
**Hello again, Internet!** You might not know me, but you probably already somewhere came across my work or myself if you ended up here. My name is Patrick (born 1975). I am a German, living on Koh Samui in Thailand and I am a web worker. Let me give you a short summary of how we got here and where we go from here :smile:

content/blog/2021/converting-frontmatter-in-gohugo/index.md

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
---
22
title: Converting frontmatter in GoHugo
33
tags:
4-
- gohugo
5-
- frontmatter
6-
- configuration
7-
date: 2021-11-02T22:49:49+07:00
4+
- gohugo
5+
- frontmatter
6+
- configuration
7+
date: 2021-11-02T15:49:49.000Z
88
resources:
9-
- src: ferenc-almasi-HfFoo4d061A-unsplash.jpg
10-
title: Photo by [Ferenc Almasi](https://unsplash.com/@flowforfrank) via [Unsplash](https://unsplash.com)
11-
lastmod: 2024-03-10T11:16:42+07:00
9+
- src: ferenc-almasi-HfFoo4d061A-unsplash.jpg
10+
title: >-
11+
Photo by [Ferenc Almasi](https://unsplash.com/@flowforfrank) via
12+
[Unsplash](https://unsplash.com)
13+
lastmod: 2024-03-10T04:16:42.000Z
1214
type: blog
13-
description: How to convert frontmatter in GoHugo between TOML, YAML and JSON.
15+
description: 'How to convert frontmatter in GoHugo between TOML, YAML and JSON.'
16+
fmContentType: blog
1417
---
1518

1619
Some days ago I realised, that I keep all my configurations for GoHugo in the TOML format, while using YAML for the frontmatters in my content folder. That did not seem right ;) so I changed those too to TOML.

content/blog/2021/csp-vs-syntax-highlighting-in-gohugo/index.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
---
22
title: CSP vs. syntax highlighting in GoHugo
33
date: '2021-10-27T21:52:14+07:00'
4-
description:
5-
If you are using the codestyling functionality of Hugo then you might
6-
have stumbled over a common issue in connection with Content Security Policies (CSP)
7-
and inline styles.
4+
description: >-
5+
If you are using the codestyling functionality of Hugo then you might have
6+
stumbled over a common issue in connection with Content Security Policies
7+
(CSP) and inline styles.
88
lastmod: '2021-10-27T21:52:14+07:00'
99
publishDate: '2021-10-27T21:52:14+07:00'
1010
resources:
1111
- name: image name if other than src
1212
src: christopher-gower-m_HRfLhgABo-unsplash.jpg
13-
title: Photo by [Christopher Gower](https://unsplash.com/@cgower) via [Unsplash](https://unsplash.com)
13+
title: >-
14+
Photo by [Christopher Gower](https://unsplash.com/@cgower) via
15+
[Unsplash](https://unsplash.com)
1416
tags:
1517
- gohugo
1618
- syntaxhighlighting
1719
- SRI
1820
- CSP
21+
fmContentType: blog
1922
---
2023

2124
If you are using the code styling functionality of GoHugo then you might have stumbled over a common issue when you are using Content Security Policies (CSP) and inline styles. Using CSPs is the proper way these days to secure your site code but it is considered (in the realm of CSPs) bad style to have your style sheets or JavaScript inlined into your page.

content/blog/2021/earths-black-box/index.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
---
22
title: Earth's Black Box
3-
description: It looks like earths climate catastrophe now has it's own black box which will record every step we take towards this catastrophe.
4-
date: 2021-12-10T18:25:14+07:00
5-
publishDate: 2021-12-10T18:25:14+07:00
6-
lastmod: 2023-08-07T19:29:46+07:00
3+
description: >-
4+
It looks like earths climate catastrophe now has it's own black box which will
5+
record every step we take towards this catastrophe.
6+
date: 2021-12-10T11:25:14.000Z
7+
publishDate: 2021-12-10T11:25:14.000Z
8+
lastmod: 2023-08-07T12:29:46.000Z
79
resources:
8-
- title: Earth's Black Box by [earthsblackbox.com](https://www.earthsblackbox.com/)
10+
- title: 'Earth''s Black Box by [earthsblackbox.com](https://www.earthsblackbox.com/)'
911
src: earths-black-box.jpg
1012
tags:
1113
- link
1214
- earth
1315
- logging
16+
fmContentType: blog
1417
---
1518

1619
It looks like earths climate catastrophe now has it's own black box.

content/blog/2021/game-off-2021/index.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Game Off 2021 Part I
33
date: '2021-10-23T16:35:44+07:00'
44
description: ''
55
resources:
6-
- params:
6+
- params: null
77
process: false
88
src: hero.png
99
title: Game Off 2021
@@ -12,6 +12,7 @@ tags:
1212
- javascript
1313
- projects
1414
- planning
15+
fmContentType: blog
1516
---
1617

1718
[Game Off 2021](https://itch.io/jam/game-off-2021) is this years iteration of a regular game development contest hosted by [itch.io](https://itch.io).

content/blog/2021/giscus-module-for-gohugo/index.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
---
22
title: Giscus Module for GoHugo
3-
date: 2021-10-27T20:25:27+07:00
4-
description: ""
3+
date: 2021-10-27T13:25:27.000Z
4+
description: ''
55
resources:
6-
- src: gerry-roarty-slkENpP5PbI-unsplash.jpg
7-
title: Photo by [Gerry Roarty](https://unsplash.com/@ger54321) via [Unsplash](https://unsplash.com)
6+
- src: gerry-roarty-slkENpP5PbI-unsplash.jpg
7+
title: >-
8+
Photo by [Gerry Roarty](https://unsplash.com/@ger54321) via
9+
[Unsplash](https://unsplash.com)
810
tags:
9-
- gohugo
10-
- static-websites
11-
- giscus
12-
- git
13-
lastmod: 2024-03-03T21:36:18+07:00
11+
- gohugo
12+
- static-websites
13+
- giscus
14+
- git
15+
lastmod: 2024-03-03T14:36:18.000Z
16+
fmContentType: blog
1417
---
1518

1619
[Giscus](https://github.com/giscus/giscus) is a new star on the comment systems for static website generators orbit. It is inspired by the wonderful [utterances](https://github.com/utterance/utterances) and uses Github Discussions to save comments. It's open source, easily configurable, themeable, translatable, and you can [host it on your own server](https://github.com/giscus/giscus/blob/main/SELF-HOSTING.md) (it's JavaScript based) if you like. I tried it, but ran into problems setting it up, so this will be a topic for a later post.

content/blog/2021/hyper-shell/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ tags:
1010
- shell
1111
- electron
1212
- link
13+
fmContentType: blog
1314
---
1415

1516
There is [nothing, you can't do with Electron](https://github.com/sindresorhus/awesome-electron), apparently. Newest proof is [Hyper, a shell inside of Electron](https://hyper.is/) (you read that right). Developed by Vercel, the app is theme-able and extensible by plugins, like any other Electron app. It doesn't look though like any init scripts like `.bashrc` are loaded. I'll be testing the program for a while.

content/blog/2021/learning-to-git-with-git/index.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ title: Learning to git with git
33
date: '2021-11-02T18:48:49+07:00'
44
resources:
55
- src: yancy-min-842ofHC6MaI-unsplash.jpg
6-
title: Photo by [Yancy Min](https://unsplash.com/@yancymin) via [Unsplash](https://unsplash.com/)
6+
title: >-
7+
Photo by [Yancy Min](https://unsplash.com/@yancymin) via
8+
[Unsplash](https://unsplash.com/)
79
tags:
810
- git
911
- learning
1012
- quicklink
13+
fmContentType: blog
1114
---
1215

1316
I like to learn things by doing them. Recently I found a couple of interesting game formats that teach certain aspects of full stack developer's life by playing a game. Let's play?
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
---
22
title: Music for the New Year
3-
description: Khruangbin @ Villain | Pitchfork Live - Some mellow music to let the year run out to. No more programming for last 10 hours ;)
4-
date: 2021-12-31T13:24:14+07:00
5-
publishDate: 2021-12-31T13:24:14+07:00
6-
lastmod: 2024-01-02T18:45:52+07:00
3+
description: >-
4+
Khruangbin @ Villain | Pitchfork Live - Some mellow music to let the year run
5+
out to. No more programming for last 10 hours ;)
6+
date: 2021-12-31T06:24:14.000Z
7+
publishDate: 2021-12-31T06:24:14.000Z
8+
lastmod: 2024-01-02T11:45:52.000Z
79
resources:
8-
- src: hero.png
9-
title: Khruangbin @ Villain | Pitchfork Live
10+
- src: hero.png
11+
title: Khruangbin @ Villain | Pitchfork Live
1012
tags:
11-
- programming-music
13+
- programming-music
1214
type: music
1315
video:
1416
artist: khruangbin
1517
title: Khruangbin @ Villain | Pitchfork Live
1618
youtube: q4xKvHANqjk
19+
fmContentType: blog
1720
---
1821

1922
Some mellow music to let the year run out to. No more programming for at least 10 hours ;)
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
---
22
title: Music to program to (Part I)
3-
date: 2021-10-26T22:08:33+07:00
3+
date: 2021-10-26T15:08:33.000Z
44
linkTitle: Music to program to I
55
tags:
6-
- programming-music
6+
- programming-music
77
video:
88
youtube: iFi0n_odlh8
99
artist: irisarri
1010
title: Empire Systems
1111
type: music
1212
resources:
13-
- src: header.jpg
14-
lastmod: 2024-01-02T18:45:52+07:00
13+
- src: header.jpg
14+
lastmod: 2024-01-02T11:45:52.000Z
15+
fmContentType: blog
1516
---
17+

content/blog/2021/print-ordinal-date-suffixes-in-gohugo/index.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ lastmod: '2021-10-28T21:56:41+07:00'
55
publishDate: '2021-10-28T21:56:41+07:00'
66
resources:
77
- src: mick-haupt-ePHz9WOME0c-unsplash.jpg
8-
title: Photo by [Mick Haupt](https://unsplash.com/@rocinante_11) via [Unsplash](https://unsplash.com)
8+
title: >-
9+
Photo by [Mick Haupt](https://unsplash.com/@rocinante_11) via
10+
[Unsplash](https://unsplash.com)
911
tags:
1012
- quicktip
1113
- ordinals
1214
- dateformat
1315
- gohugo
16+
fmContentType: blog
1417
---
1518

1619
Golangs `$date.Format` is unable to add ordinal suffixes to dates (like 1st, 2nd, 3rd, 4th). Let's not judge Golang for that. The following is how I remedy this issue:

content/blog/2021/well-thats-a-unique-logo/index.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
---
22
title: Well… that's a unique… logo?
3-
summary: I had a weird reaction (""well… that’s a unique logo?") to my really great weblog logo above recently, so I thought I might as well explain it.
4-
date: 2021-10-29T19:47:48+07:00
5-
lastmod: 2024-03-03T21:36:18+07:00
6-
publishDate: 2021-10-29T19:47:48+07:00
3+
summary: >-
4+
I had a weird reaction (""well… that’s a unique logo?") to my really great
5+
weblog logo above recently, so I thought I might as well explain it.
6+
date: 2021-10-29T12:47:48.000Z
7+
lastmod: 2024-03-03T14:36:18.000Z
8+
publishDate: 2021-10-29T12:47:48.000Z
79
resources:
8-
- src: logo.png
9-
title: The greatest logo of them all
10+
- src: logo.png
11+
title: The greatest logo of them all
1012
tags:
11-
- davidsneighbour
12-
- me-now
13-
- logos
13+
- davidsneighbour
14+
- me-now
15+
- logos
16+
fmContentType: blog
1417
---
1518

1619
I had a weird reaction ("well… that's a unique logo?") to my really great weblog logo above recently, so I thought I might as well explain it.

content/blog/2021/you-got-to/index.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
title: You got to…
3-
date: 2021-11-15T21:45:44+07:00
3+
date: 2021-11-15T14:45:44.000Z
44
description: … subscribe to Stefan Judis' Newsletter. Trust me. It's good. Weekly
55
resources:
6-
- src: stefanjudis.com.jpg
7-
title: stefanjudis.com
6+
- src: stefanjudis.com.jpg
7+
title: stefanjudis.com
88
tags:
9-
- newsletter
10-
- web-development
11-
lastmod: 2024-03-03T21:29:47+07:00
9+
- newsletter
10+
- web-development
11+
lastmod: 2024-03-03T14:29:47.000Z
12+
fmContentType: blog
1213
---
1314

1415
… subscribe to [Stefan Judis' Newsletter](https://www.stefanjudis.com/) (click this link, load his site, scroll to the footer and subscribe). Trust me. It's good. Weekly. His topics touch everything web development related and there is never an issue from which I don't learn something new. Subscribe now and grow his subscriber list over 2k ;)

content/blog/2022/100daystooffload/index.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
---
2-
title: "#100DaysToOffload"
3-
linkTitle: "#100DaysToOffload"
2+
title: '#100DaysToOffload'
3+
linkTitle: '#100DaysToOffload'
44
slug: 100-days-to-offload
5-
date: 2022-03-21T23:27:23+07:00
6-
publishDate: 2022-03-21T23:27:23+07:00
5+
date: 2022-03-21T16:27:23.000Z
6+
publishDate: 2022-03-21T16:27:23.000Z
77
lastmod: 2024-10-01T14:36:37.806Z
88
resources:
9-
- title: Photo by [Marcel Eberle](https://unsplash.com/@marcel_eberle) via [Unsplash](https://unsplash.com/)
9+
- title: >-
10+
Photo by [Marcel Eberle](https://unsplash.com/@marcel_eberle) via
11+
[Unsplash](https://unsplash.com/)
1012
src: marcel-eberle-SCBREPQuYoM-unsplash.jpg
1113
tags:
1214
- 100DaysToOffload
1315
- selfimprovement
1416
- davidsneighbour
1517
aliases:
1618
- /100daystooffload
19+
fmContentType: blog
1720
---
1821

1922
I [recently](/blog/2022/notes-from-the-laboratory-february/) started taking part in the [`#100DaysToOffload`](https://100daystooffload.com/) challenge. It's a challenge that tries to create a larger output of content that is interesting and useful. I will try to write about the topics that I have learned during this time while still staying to be the nerd that I am.
+11-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
---
22
title: A Cat and a Dog
33
linkTitle: A Cat and a Dog
4-
description: Ok, so this is a cat and a dog living peacefully together. I had to add this just for some testing purposes ;) Keep calm and keep walking, there is nothing to see here…
5-
date: 2022-08-25T23:25:16+07:00
6-
publishDate: 2022-08-25T23:25:16+07:00
7-
lastmod: 2023-08-07T19:33:03+07:00
4+
description: >-
5+
Ok, so this is a cat and a dog living peacefully together. I had to add this
6+
just for some testing purposes ;) Keep calm and keep walking, there is nothing
7+
to see here…
8+
date: 2022-08-25T16:25:16.000Z
9+
publishDate: 2022-08-25T16:25:16.000Z
10+
lastmod: 2023-08-07T12:33:03.000Z
811
resources:
9-
- title: Photo by [Andrew S](https://unsplash.com/@sita2) via [Unsplash](https://unsplash.com/)
12+
- title: >-
13+
Photo by [Andrew S](https://unsplash.com/@sita2) via
14+
[Unsplash](https://unsplash.com/)
1015
src: header.jpg
1116
tags:
1217
- cat
@@ -15,6 +20,7 @@ tags:
1520
type: blog
1621
unsplash:
1722
imageid: ouo1hbizWwo
23+
fmContentType: blog
1824
---
1925

2026
Ok, so this is a cat and a dog living peacefully together. I had to add this just for some testing purposes ;) Keep calm and keep walking, there is nothing to see here (other than animals proving to us humans that one can live together with other kinds, but, well, whatever…)…

content/blog/2022/autostart-development-server-in-vscode/index.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
---
22
type: blog
33
title: Autostart a development server in VSCode
4-
description: "An easy way to automatically start a development server each time you open a VSCode workspace or folder. "
5-
date: 2022-04-12T23:26:46+07:00
6-
publishDate: 2022-04-12T23:26:46+07:00
4+
description: >-
5+
An easy way to automatically start a development server each time you open a
6+
VSCode workspace or folder.
7+
date: 2022-04-12T16:26:46.000Z
8+
publishDate: 2022-04-12T16:26:46.000Z
79
lastmod: 2024-08-26T13:13:59.420Z
810
resources:
9-
- title: Photo by [Douglas Lopes](https://unsplash.com/@douglasamarelo) via [Unsplash](https://unsplash.com/)
11+
- title: >-
12+
Photo by [Douglas Lopes](https://unsplash.com/@douglasamarelo) via
13+
[Unsplash](https://unsplash.com/)
1014
src: header.jpg
1115
tags:
1216
- vscode
1317
- development
1418
- automation
1519
- 100DaysToOffload
20+
fmContentType: blog
1621
---
1722

1823
Are you annoyed of the two clicks and one line command to start your development server (or development watching process) each time you open VSCode? Then I can help you ;]

0 commit comments

Comments
 (0)