some fixes
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Michael Zhang 2024-09-10 05:28:25 -05:00
parent 772c46f77b
commit d3d9145610
10 changed files with 73 additions and 8 deletions

2
.gitignore vendored
View file

@ -30,3 +30,5 @@ _build
.pnpm-store
/public/generated
.frontmatter

View file

@ -1,4 +1,7 @@
{
"recommendations": ["astro-build.astro-vscode"],
"recommendations": [
"astro-build.astro-vscode",
"eliostruyf.vscode-front-matter"
],
"unwantedRecommendations": []
}

47
frontmatter.json Normal file
View file

@ -0,0 +1,47 @@
{
"$schema": "https://frontmatter.codes/frontmatter.schema.json",
"frontMatter.framework.id": "astro",
"frontMatter.preview.host": "http://localhost:4321",
"frontMatter.content.publicFolder": "public",
"frontMatter.content.pageFolders": [
{
"title": "posts",
"path": "[[workspace]]/src/content/posts"
}
],
"frontMatter.taxonomy.contentTypes": [
{
"name": "default",
"pageBundle": false,
"previewPath": "",
"filePrefix": null,
"clearEmpty": true,
"fields": [
{
"title": "Title",
"name": "title",
"type": "string",
"single": true
},
{
"title": "Description",
"name": "description",
"type": "string"
},
{
"title": "Publishing date",
"name": "date",
"type": "datetime",
"default": "{{now}}",
"isPublishDate": true
},
{
"title": "Content preview",
"name": "heroImage",
"type": "image",
"isPreviewImage": true
}
]
}
]
}

View file

@ -79,7 +79,7 @@ const sortedPosts = sortBy(allPosts, (post) => -post.data.date);
<style lang="scss">
.postListing {
width: 100%;
border-spacing: 6px 16px;
border-spacing: 6px 24px;
:global(.timestamp) {
font-family: var(--monofont);
@ -88,7 +88,7 @@ const sortedPosts = sortBy(allPosts, (post) => -post.data.date);
}
:global(.tags) {
gap: 4px;
gap: 8px;
display: inline-flex;
:global(.tag) {
@ -99,6 +99,9 @@ const sortedPosts = sortBy(allPosts, (post) => -post.data.date);
td {
line-height: 1;
display: flex;
flex-direction: column;
gap: 4px;
.title {
font-size: 12pt;

View file

@ -4,7 +4,7 @@ date: 2023-03-29
tags: ["docker", "linux"]
---
First (published) blog post of the year! :raising_hands:
First (published) blog post of the year! :raised_hands:
Here is a rather dumb way of entering a Docker Compose container that didn't
have a shell. In this specific case, I was trying to enter a Woodpecker CI

View file

@ -2,7 +2,7 @@
title: "Path induction: a GADT perspective"
slug: 2023-10-23-path-induction-gadt-perspective
date: 2023-10-23
tags: ["type-theory", "programming-languages"]
tags: ["type-theory", "pl-theory"]
---
<details>

View file

@ -0,0 +1,7 @@
---
title: Lambda calculus part 1
date: 2024-09-10T10:16:12.486Z
type: default
draft: true
tags: [pl-theory]
---

View file

@ -1,7 +1,7 @@
---
import PostList from "../components/PostList.astro";
import BaseLayout from "../layouts/BaseLayout.astro";
import { join, dirname } from "path";
import { join, dirname } from "node:path";
const currentUrl = Astro.url;
---

View file

@ -27,6 +27,7 @@
display: flex;
padding: 20px;
box-sizing: border-box;
gap: 6px;
flex-direction: column;
@ -225,6 +226,8 @@
>p {
line-height: 1.25;
margin-bottom: 1.25rem;
margin-top: 1.25rem;
}
>p>img {

View file

@ -1,6 +1,6 @@
.tags {
display: flex;
gap: 6px;
gap: 8px;
// margin-bottom: 6px;
flex-wrap: wrap;