Skip to content

WIP: The blog - #69

Open
ivankocienski wants to merge 8 commits into
stagingfrom
blog-feature
Open

WIP: The blog#69
ivankocienski wants to merge 8 commits into
stagingfrom
blog-feature

Conversation

@ivankocienski

@ivankocienski ivankocienski commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Closes #70, #42

The Blog engine.

  • readme explaining how to add posts and deploy
  • posts written as markdown text files
  • taster posts on homepage (style TBC)
  • blog index page, ordered by date descending (style TBC)
  • show blog page (style TBC)
  • all with translation strings
  • a couple of sample posts (content TBC)

Also included here

  • "Not found" pages for routes, blog and case studies
  • The way meta tags are set up

Basic blog functionality where posts get compiled (before deploy) and
are then rendered with an index and show page.

Also implements "Not Found" and has a refactored meta-tags pipeline.
@netlify

netlify Bot commented Jan 19, 2026

Copy link
Copy Markdown

Deploy Preview for cookiewolf ready!

Name Link
🔨 Latest commit b849c25
🔍 Latest deploy log https://app.netlify.com/projects/cookiewolf/deploys/6979eb024d2929000842010c
😎 Deploy Preview https://deploy-preview-69--cookiewolf.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@@ -0,0 +1,204 @@
/*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might make sense to use this package that converts markdown that we used in nextdoor nature instead of this script.

My thinking is that it's more generic and we don't have the conversion tied to our front matter contents , it already has it's own tests.

We can also move more logic into Elm, like slug formatting.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm I have given this some thought.

  • the project you linked to is 6 years old and can we trust the dependencies are mawlare free?
  • this written script is already done and works (and has zero dependencies)
  • it's very generic. this script validates the fields are present and of the correct format. it also sorts the posts by publish date. it also generates the correct json, so it would be more work to move to the suggested package.
  • one problem with moving things into elm is that elm has poor error feedback for doing batch jobs like this.
  • we can build on this script as needed like moving case studies over to it, or having blog posts categorised by keywords

@aaaaargZombies aaaaargZombies Jan 19, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reasonable points, I always feel a little uneasy around parsing raw strings but it's not a blocker for me!

Comment thread src/Model.elm
{ title : String
, description : String
, url : Maybe String
, imageSrc : Maybe String

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add altText for imgs, I realize this is not a blog specific issue!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! but probably not a priority for this PR?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair, I will open a ticket!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Blog

2 participants