How to use BlogHighlightedPosts #476
-
OK, I give up. How do I use the BlogHighlightedPosts component? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Then Please note that this is not how the list of blog articles in the menu works in Astrowind. The list of blog articles in the menu displays the articles in reverse chronological order. This is sometimes not what is wanted. In order to fix this, I changed the load function to order by id, which Astrowind defines as the name of the blog markdown file. You can see this on my Github repository here. Please note that you then need to rename your blog files in the order you would like to present them to readers. |
Beta Was this translation helpful? Give feedback.
BlogHighlightedPosts
works suboptimally and is not documented. In order to get it to work, you have to create an array in your index.astro page calledconst postIds[] = {['foo.md','bar.md']}
Then
BlogHighlightedPosts
will displayfoo.md
first, thenbar.md.
Please note that this is not how the list of blog articles in the menu works in Astrowind. The list of blog articles in the menu displays the articles in reverse chronological order. This is sometimes not what is wanted. In order to fix this, I changed the load function to order by id, which Astrowind defines as the name of the blog markdown file. You can see this on my Github repository here. Please note that you then need to rename yo…