Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 关于 use_directory_urls 配置的问题 #34

Closed
gledos opened this issue Jul 18, 2022 · 5 comments
Closed

[BUG] 关于 use_directory_urls 配置的问题 #34

gledos opened this issue Jul 18, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@gledos
Copy link

gledos commented Jul 18, 2022

Bug 情况

当我在配置中输入了 use_directory_urls: false 之后,所有的链接都是以 .html 结尾。

但插件中设置了 tags 主页,仍然会给出指向不带 .html 的链接,这会导致部分服务器无法跳转。(GitHub 的服务器似乎有做一些处理,所以带不带 .html 后缀都可以访问,不过本地服务器测试就不行了)

以下是部分配置文件:

use_directory_urls: false

plugins:
- blogging:
    features:
      tags:
        index_page: tags.md

非常感谢此插件,有了它我就可以做一个最近更新的页面了。


题外话:我的 MkDocs 页面很多,如果从 git 拉取时间,大概需要花费 250 多秒,所以我全部从元数据提取时间,这样 30 多秒就能完成了。

@liang2kl
Copy link
Owner

liang2kl commented Jul 18, 2022

已确认问题。

@liang2kl liang2kl added the bug Something isn't working label Jul 18, 2022
@liang2kl
Copy link
Owner

已修复,请更新到 v2.1.1 版本

@gledos
Copy link
Author

gledos commented Jul 18, 2022

非常感谢。

@Andre601
Copy link
Contributor

I don't speak this language, so what was the issue?

@gledos
Copy link
Author

gledos commented Jul 18, 2022

I don't speak this language, so what was the issue?

use_directory_urls setting will let:

Source file use_directory_urls: true use_directory_urls: false
index.md / /index.html
api-guide.md /api-guide/ /api-guide.html
about/license.md /about/license/ /about/license.html

but plugin's tags url not with .html……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants