Skip to content

Modify layouts. #1733

Answered by kungfux
BorjaAB asked this question in Q&A
May 10, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @BorjaAB.

It's possible to change the layout by overriding the existing one. To do this, you need to create a file e.g. _layouts/post.html that will take effect instead of the predefined one with the same filename. However, this option has its drawbacks, as you will have to manually support any future changes to stay in sync with the theme files.

So, for simple UI changes that can be achieved using CSS styles, the option to add your own styles to assets/css/jekyll-theme-chirpy.scss is preferable.

Replies: 2 comments 2 replies

Comment options

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

Answer selected by BorjaAB
Comment options

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

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