hexo
hexo copied to clipboard
Link to a category page from a markdown post?
How do I link to a category page from within a markdown post? Basically I am looking for include posts tag plugin for category pages.
For example, if I want to render the "recipies" category link, e.g. example.com/blog/categories/recipies/, can I use something like {% category_link recipies %} within a post.md file to produce the correct relative category link?
I know I can just hardlink [recipies](/blog/categories/recipies/), but I'd like to do it in a way that doesn't break all my links if I decide to rename my root directory (in this example it is /blog/).