From 294a8ab817b7da7c73e89aaa08514f7ce53ccef2 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Tue, 8 Jul 2025 15:04:34 -0700 Subject: [PATCH] feat: add link to article version history and our community (#4) ### Explanation _No response_ ### Issue _No response_ ### Attestations - [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/) - [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/). - [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/). ### Dependencies - [ ] I have pinned the dependencies to a specific patch version. ### Style - [x] I have run the linter and resolved any errors. - [x] My pull request uses an appropriate title, matching the conventional commit standards. - [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request. ### Tests - [ ] My contribution adds new code, and I have added tests to cover it. - [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes. - [ ] All new and existing tests pass locally with my changes. - [ ] Code coverage remains at or above the configured threshold. ### Documentation _No response_ ### Versioning _No response_ Reviewed-on: https://git.nhcarrigan.com/nhcarrigan/blog/pulls/4 Co-authored-by: Naomi Carrigan Co-committed-by: Naomi Carrigan --- .vscode/settings.json | 6 ++++++ src/app/page.tsx | 4 ++-- src/app/post/[slug]/page.tsx | 22 +++++++++++++++++++--- 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..874773d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" + }, + "eslint.validate": ["typescript"], +} diff --git a/src/app/page.tsx b/src/app/page.tsx index 4457db5..1b3f0be 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -17,13 +17,13 @@ const Home = (): JSX.Element => { return (

{"Blog"}

-

{"Welcome to the musings of a transfem software engineer!"}

+

{"Welcome to the musings of a transfem software engineer!"}

{posts.map((post) => { return

{post.data.title}

{post.data.date.toLocaleDateString("en-GB", { day: "numeric", month: "long", year: "numeric" })}

-

{post.data.summary}

+

{post.data.summary}

; })}
diff --git a/src/app/post/[slug]/page.tsx b/src/app/post/[slug]/page.tsx index 99d2d45..3ee29d2 100644 --- a/src/app/post/[slug]/page.tsx +++ b/src/app/post/[slug]/page.tsx @@ -27,11 +27,27 @@ const Page = async({ return (

{post.data.title}

-

{`Published ${post.data.date.toLocaleDateString("en-GB", { day: "numeric", month: "long", weekday: "long", year: "numeric" })}`}

+

{`Published ${post.data.date.toLocaleDateString( + "en-GB", + { day: "numeric", month: "long", weekday: "long", year: "numeric" }, + )}`}

- {post.content} + + {post.content} + - {"← Back to home"} +

+ {`Love this post? Think Naomi is completely wrong? Have other thoughts you would like to share? `} + {`Come tell us on Discord~!`} +

+
); };