Skip to content

[永久链接] [特殊字符] 如何让URL里面的特殊字符不转义? #5491

Closed Answered by pygyme
pygyme asked this question in Question / Answer
Discussion options

You must be logged in to vote

我找到了一种,我认为更好的永久链接命名规则, 在这里分享一下。

我的永久链接设置是:

permalink: :year/:month/:link.html

我的文章字段设置是:

---
title: C++语言标准编译器支持情况
link: cpp-compiler-support-status
categories: C++语言
---

这样配置生成出来的链接是: /2024/05/cpp-compiler-support-status.html

通过在文章里面指定 link 字段的方式, 可以实现灵活控制文章URL的生成,很好的满足了我的需求。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pygyme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant