Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose posts pages to both server and build #85

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

NTBBloodbath
Copy link
Owner

@NTBBloodbath NTBBloodbath commented Mar 4, 2025

This commit adds the possibility to expose all content files at my-site/posts/ which are then accessible inside the templates allowing for some niceties like creating a Recent posts list template.

It does expose a posts array as part of the templates context, which holds the metadata from all the blog posts including an extra permalink field and also a raw field with the HTML code for the post.

This commit adds the possibility to expose all content files at `my-site/posts/` which are then accessible inside the templates allowing for some niceties like creating a Recent posts list template
@NTBBloodbath NTBBloodbath added enhancement New feature or request cmd:build Build command cmd:serve Serve command labels Mar 4, 2025
@NTBBloodbath NTBBloodbath merged commit e19cf94 into master Mar 4, 2025
4 checks passed
@NTBBloodbath NTBBloodbath deleted the push-ptlpkrytlylo branch March 4, 2025 11:52
@NTBBloodbath NTBBloodbath restored the push-ptlpkrytlylo branch March 4, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd:build Build command cmd:serve Serve command enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant