refactor: use a content collection for daily posts
This commit is contained in:
parent
58061a8e59
commit
9088ed2101
996
.astro/types.d.ts
vendored
996
.astro/types.d.ts
vendored
File diff suppressed because it is too large
Load diff
|
@ -23,9 +23,12 @@
|
|||
"@types/alpinejs": "^3.0.0",
|
||||
"alpinejs": "^3.0.0",
|
||||
"astro": "^2.2.1",
|
||||
"date-fns": "^2.29.3",
|
||||
"lodash": "^4.17.21",
|
||||
"markdown-it": "^13.0.1",
|
||||
"octokit": "^2.0.14",
|
||||
"postcss-import": "^15.0.0",
|
||||
"sanitize-html": "^2.10.0",
|
||||
"tailwindcss": "^3.0.24"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
2
run
2
run
|
@ -18,7 +18,7 @@ function task:daily {
|
|||
next_date="${1}"
|
||||
fi
|
||||
|
||||
local filepath="src/daily-emails/${next_date}.md"
|
||||
local filepath="src/content/daily-email/${next_date}.md"
|
||||
|
||||
shift 1
|
||||
|
||||
|
|
|
@ -11,6 +11,15 @@ const blogCollection = defineCollection({
|
|||
}),
|
||||
});
|
||||
|
||||
const dailyEmailCollection = defineCollection({
|
||||
schema: z.object({
|
||||
pubDate: z.date(),
|
||||
permalink: z.string(),
|
||||
tags: z.array(z.string()).optional(),
|
||||
title: z.string(),
|
||||
}),
|
||||
});
|
||||
|
||||
const talkCollection = defineCollection({
|
||||
schema: z.object({
|
||||
description: z.string(),
|
||||
|
@ -27,6 +36,7 @@ const talkCollection = defineCollection({
|
|||
});
|
||||
|
||||
export const collections = {
|
||||
'daily-email': dailyEmailCollection,
|
||||
blog: blogCollection,
|
||||
talk: talkCollection,
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: "To monorepo, or not to monorepo?"
|
||||
permalink: "archive/2022/08/31/monorepo-or-not"
|
||||
pubDate: "2022-08-31"
|
||||
pubDate: 2022-08-31
|
||||
tags: ["git"]
|
||||
---
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Automating all the things with Ansible"
|
||||
pubDate: "2022-09-02"
|
||||
pubDate: 2022-09-02
|
||||
permalink: "archive/2022/09/02/automating-all-the-things-with-ansible"
|
||||
tags: ["ansible"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Using Ansible for server configuration"
|
||||
pubDate: "2022-09-04"
|
||||
pubDate: 2022-09-04
|
||||
permalink: "archive/2022/09/04/using-ansible-for-server-configuration"
|
||||
---
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Using Ansible for local environment configuration"
|
||||
pubDate: "2022-09-05"
|
||||
pubDate: 2022-09-05
|
||||
permalink: "archive/2022/09/05/using-ansible-for-local-configuration"
|
||||
---
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Deploying applications with Ansible"
|
||||
pubDate: "2022-09-06"
|
||||
pubDate: 2022-09-06
|
||||
permalink: "archive/2022/09/06/deploying-applications-with-ansible"
|
||||
---
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "My Tailwind CSS origin story"
|
||||
pubDate: "2022-09-07"
|
||||
pubDate: 2022-09-07
|
||||
permalink: "archive/2022/09/07/my-tailwind-css-origin-story"
|
||||
tags: ["tailwind-css"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Keeping secrets with Ansible Vault"
|
||||
pubDate: "2022-09-08"
|
||||
pubDate: 2022-09-08
|
||||
permalink: "archive/2022/09/08/keeping-secrets-with-ansible-vault"
|
||||
tags: ["ansible"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Refactoring a Tailwind CSS component"
|
||||
pubDate: "2022-09-09"
|
||||
pubDate: 2022-09-09
|
||||
permalink: "archive/2022/09/09/refactoring-tailwind-component"
|
||||
tags: ["tailwind-css"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Automating Ansible deployments in CI"
|
||||
pubDate: "2022-09-10"
|
||||
pubDate: 2022-09-10
|
||||
permalink: "archive/2022/09/10/automating-ansible-deployments-ci"
|
||||
tags: ["ansible"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Custom styles in Tailwind CSS: `@apply`, `theme` or custom plugins"
|
||||
pubDate: "2022-09-11"
|
||||
pubDate: 2022-09-11
|
||||
permalink: "archive/2022/09/11/custom-styles-tailwind-css-apply-theme-custom-plugins"
|
||||
tags: ["tailwind-css"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "A month of daily emails"
|
||||
pubDate: "2022-09-12"
|
||||
pubDate: 2022-09-12
|
||||
permalink: "archive/2022/09/12/month-daily-emails"
|
||||
---
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "The simplest Drupal test"
|
||||
pubDate: "2022-09-14"
|
||||
pubDate: 2022-09-14
|
||||
permalink: "archive/2022/09/14/simpletest-drupal-test"
|
||||
---
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Why I mostly write functional and integration tests"
|
||||
pubDate: "2022-09-16"
|
||||
pubDate: 2022-09-16
|
||||
permalink: "archive/2022/09/16/why-mostly-write-functional-and-integration-tests"
|
||||
tags: ["drupal"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Thoughts on automated code formatting"
|
||||
pubDate: "2022-09-17"
|
||||
pubDate: 2022-09-17
|
||||
permalink: "archive/2022/09/17/thoughts-automated-code-formatting"
|
||||
---
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Useful Git configuration"
|
||||
pubDate: "2022-09-19"
|
||||
pubDate: 2022-09-19
|
||||
permalink: "archive/2022/09/19/useful-git-configuration"
|
||||
tags: ["git"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Why I like trunk-based development"
|
||||
pubDate: "2022-09-20"
|
||||
pubDate: 2022-09-20
|
||||
permalink: "archive/2022/09/20/why-like-trunk-based-development"
|
||||
tags: ["git"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Being a Drupal contribution mentor"
|
||||
pubDate: "2022-09-21"
|
||||
pubDate: 2022-09-21
|
||||
permalink: "archive/2022/09/21/being-drupal-contribution-mentor"
|
||||
tags: ["drupal"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Releasing a Drupal module template"
|
||||
pubDate: "2022-09-22"
|
||||
pubDate: 2022-09-22
|
||||
permalink: "archive/2022/09/22/releasing-drupal-module-template"
|
||||
tags: ["drupal"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "ADRs and Technical Design Documents"
|
||||
pubDate: "2022-09-23"
|
||||
pubDate: 2022-09-23
|
||||
permalink: "archive/2022/09/23/adrs-technical-design-documents"
|
||||
tags: []
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Using a component library for front-end development"
|
||||
pubDate: "2022-09-25"
|
||||
pubDate: 2022-09-25
|
||||
permalink: "archive/2022/09/25/using-component-library-for-front-end-development"
|
||||
tags: []
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Experimenting with the Nix package manager"
|
||||
pubDate: "2022-09-26"
|
||||
pubDate: 2022-09-26
|
||||
permalink: "archive/2022/09/26/experimenting-with-the-nix-package-manager"
|
||||
tags: ["nix"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Mentoring with Drupal Career Online"
|
||||
pubDate: "2022-09-27"
|
||||
pubDate: 2022-09-27
|
||||
permalink: "archive/2022/09/27/mentoring-with-drupal-career-online"
|
||||
tags: ["drupal"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Mob programming at PHP South Wales"
|
||||
pubDate: "2022-09-28"
|
||||
pubDate: 2022-09-28
|
||||
permalink: "archive/2022/09/28/mob-programming-php-south-wales"
|
||||
tags: []
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Store Wars: different state management in Vue.js"
|
||||
pubDate: "2022-09-30"
|
||||
pubDate: 2022-09-30
|
||||
permalink: "archive/2022/09/30/store-wars-vuejs"
|
||||
tags: ["vue"]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Why do code katas?
|
||||
pubDate: "2022-10-01"
|
||||
pubDate: 2022-10-01
|
||||
permalink: archive/2022/10/01/code-katas
|
||||
tags: []
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Minimum viable CI pipelines
|
||||
pubDate: "2022-10-02"
|
||||
pubDate: 2022-10-02
|
||||
permalink: archive/2022/10/02/minimum-viable-pipelines
|
||||
tags: []
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Refactoring to value objects
|
||||
pubDate: "2022-10-03"
|
||||
pubDate: 2022-10-03
|
||||
permalink: archive/2022/10/03/refactoring-value-objects
|
||||
tags: [php]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: First impressions of Astro
|
||||
pubDate: "2022-10-08"
|
||||
pubDate: 2022-10-08
|
||||
permalink: archive/2022/10/08/first-impressions-astro
|
||||
tags: [astro]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Coding defensively, and Implicit vs explicit coding
|
||||
pubDate: "2022-10-09"
|
||||
pubDate: 2022-10-09
|
||||
permalink: archive/2022/10/09/coding-defensively-implicit-explicit
|
||||
tags: [tailwindcss, php]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Contributing to open-source software, one small change at a time
|
||||
pubDate: "2022-10-10"
|
||||
pubDate: 2022-10-10
|
||||
permalink: archive/2022/10/10/contributing-open-source-software-one-small-change-time
|
||||
tags: [open-source]
|
||||
---
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Not long until Drupal 10
|
||||
pubDate: "2022-10-11"
|
||||
pubDate: 2022-10-11
|
||||
permalink: archive/2022/10/11/not-long-until-drupal-10
|
||||
tags: [drupal, php]
|
||||
---
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue