Creating an alternate home layout for posts #1331
Unanswered
imagelessthought
asked this question in
Q&A
Replies: 2 comments
-
also curious for this problem... |
Beta Was this translation helpful? Give feedback.
0 replies
-
@imagelessthought This happened because you didn't create/apply necessary styles to the custom layout |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checklist
How did you create the site?
Built from
jekyll-theme-chirpy
Description
I want to create an alternative version of the home page, which uses the home layout. The home page lists the available posts. I copied the home layout exactly into home-alt.html and created a new markup file. The posts are listed but the formatting is lost - the preview image is about 1rem by 1rem and a lot of the styling is missing. If I point the md file to home.html it works fine, but when I change it to home-posts, even though it is exactly the same - it does not work.
Anyone know what I need to change?
alt-posts.md:
layout: home-posts
permalink: /posts-alt/
Index page
Again, the layout of home-posts.html is a direct copy of the home.html layout.
Operations you have already tried
I tried creating seprate layouts and looked through all f the layouts - but could not find anything. Lost of troubleshooting.
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions