-
Notifications
You must be signed in to change notification settings - Fork 25.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Is there a way to include content in the home page layout? #1773
Comments
Yes, that's how you'd do it. The |
Thanks for the response. I am keen to retain the list of recent posts, so the archive layout doesn’t seem appropriate. I realise from your response that it sounded like I was asking how to achieve this result myself; I was actually wondering if there was a reason that the It seems a little unintuitive to a newcomer, so I wondered whether I was missing some alternative way of achieving the same effect without creating a new layout. |
No obvious reason why Happy to look at a pull request if you want to add it. |
Fab, that’s what I was hoping to hear 😃I’ve raised a pull request. |
Description
I’d like to be able to include content from the body of the page when using the home page layout. This way I can have an introductory paragraph above a list of recent posts.
It looks like this could be achieved by including
{{content}}
in the layout, just above the<h3…>…</h3>
line.Environment
Ruby gem orremote theme version: 4.12.0Expected behavior
The text from the content of the page should be included above the ‘Recent Posts’ heading.
Steps to reproduce the behavior
Create a page with the following contents.
The text was updated successfully, but these errors were encountered: