Skip to content

Override post page theme #208

Closed Answered by tmutton
tmutton asked this question in Q&A
Nov 18, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @daveaglick, thank you for your response. I had a play around with this after I wrote the question and managed to find a solution. But to first answer your question: It's a custom theme based off of CleanBlog

I forgot to mention I was porting a Jekyll blog. And actually through these solutions I've managed to replicate the url layout for posts and the blog page titles. You wouldn't know the difference.

In my custom theme I have a layout. My solution was to add a new layout in input called _postlayout. I then added a _directory.yml file in input/posts which then specified the layout as _postlayout.

In _postlayout I was able to get access to @Document.GetTitle(), GetDate() and @RenderBod…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@daveaglick
Comment options

Answer selected by daveaglick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants