khusika / FeelIt

A clean, elegant but advanced blog theme for Hugo
https://feelit.khusika.dev
MIT License
166 stars 61 forks source link

[BUG] The improve artical don't work correclly #116

Closed itlvd closed 11 months ago

itlvd commented 11 months ago

Describe the bug

When I clicked the improve artical, It redicrect to edit github item. But the postfix url was wrong.

Such as: https://github.com/itlvd/blogspot/edit/main/content/posts%5cluat-ket-hop-thuat-toan-apriori-data-mining%5cindex.vi.md

Expected behavior

Correctly:

https://github.com/itlvd/blogspot/edit/main/content/posts/luat-ket-hop-thuat-toan-apriori-data-mining/index.vi.md

Screenshots

image

Build Environment

Preview Environment

Additional Information

I found the infomation in File variables:

And then, path.Clean will be a solution to solve this problem when the user deployed on Windows system.

117

khusika commented 11 months ago

Hi, thanks for this! Closes as of this https://github.com/khusika/FeelIt/commit/799e0d23f22ded690edd537ab8d457d77668b298