Skip to content

Conversation

@cowboyd
Copy link
Member

@cowboyd cowboyd commented Jan 27, 2025

Motivation

Make it easy to write blog posts and keep things like metadata inline with itself.

Approach

Everything in a blog post is stored inside a single directory. That way, assets can be referenced relatively.

- Moved author image logic to a utility function `getAuthorImage`
- Created `AuthorSection` component to reduce repetition
- Simplified the blog rendering logic for better maintainability
- Leverage the Author SectionComponent
- Uset getAuthorImage Function
@netlify
Copy link

netlify bot commented Jan 27, 2025

Deploy Preview for frontside canceled.

Name Link
🔨 Latest commit 5f0a997
🔍 Latest deploy log https://app.netlify.com/sites/frontside/deploys/67993d5953485a00081784b1

- Moved `authorsWithImage` array to a shared utility file (`authorConfig.ts`) for centralized management.
- Updated `getAuthorImage` to use the shared `authorsWithImage` configuration.
- Simplified blog index and post routes by removing redundant `authorsWithImage` definitions.
- Improved maintainability and reusability of author image logic.
@deno-deploy deno-deploy bot had a problem deploying to Preview January 27, 2025 23:00 Failure
We're showing all the blogs already.
Actually, we should be decoding this URI component inside Revolution,
but that is another issue entirely.
@cowboyd cowboyd merged commit f51f73a into production Jan 28, 2025
7 checks passed
@cowboyd cowboyd deleted the revolutionize-blog branch January 28, 2025 20:51
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.

3 participants