Customize the order of posts #26
Answered
by
sharadcodes
Nitrohedge21
asked this question in
Q&A / Get Help
-
Is it possible to customize the order of posts? Thanks in advance 😄 |
Beta Was this translation helpful? Give feedback.
Answered by
sharadcodes
Mar 18, 2025
Replies: 3 comments 4 replies
-
Yeah you could do so by editing the loop |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the quick response! This is my first time using a Jekyll website so I was wondering if you could be more specific? |
Beta Was this translation helpful? Give feedback.
4 replies
-
By the way @Nitrohedge21 I've added two new features in the theme, you can check out the README |
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
Step 1: Add an "order" parameter to your post frontmatter
For each post, add an
order
parameter in the frontmatter section. Lower numbers will appear first.Step 2: Modify your blog layout to use the custom ordering
Edit your
_layouts/blog.html
file to sort posts by the order parameter: