hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.54k stars 4.86k forks source link

Tags and Archives links shoud follow permalink configuration #5543

Open majkel89 opened 2 months ago

majkel89 commented 2 months ago

Check List

Feature Request

It is possible to configure permalinks for posts

pretty_urls:
  trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  trailing_html: true # Set to false to remove trailing '.html' from permalinks

This way posts links are as follows: http://localhost:4000/2024/09/08/hello-world/index.html

The settings does not apply for tags (http://localhost:4000/tags/tag1/) nor archives (http://localhost:4000/archives/2024/09/).

It leads to problems when blog is hosted behind private S3 bucket.

To make the links consistent my proposition is to add /index.html to links generated by Tag and Category models.

Others

No response