惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
U
Unit 42
I
InfoQ
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
B
Blog RSS Feed
Vercel News
Vercel News
F
Fortinet All Blogs
Know Your Adversary
Know Your Adversary
T
Troy Hunt's Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
Jina AI
Jina AI
小众软件
小众软件
T
Threatpost
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
Scott Helme
Scott Helme
B
Blog
腾讯CDC
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
S
Schneier on Security
N
News and Events Feed by Topic
Microsoft Security Blog
Microsoft Security Blog
K
Kaspersky official blog
G
Google Developers Blog
T
Tor Project blog
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
Latest news
Latest news
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
罗磊的独立博客

Typecho Official Site - 链接

暂无文章

介绍一下开发中的自定义链接功能 - Typecho Official Site
作者:sluke · 2009-02-24 · via Typecho Official Site - 链接

在typecho0.5版本中,我们加入了一个十分有利于SEO的特性,那就是灵活的自定义链接功能。

在我们开启rewrite功能之后,在以往的版本中, 只能使用以下四种风格:

 默认风格 /archives/{cid}/
 wordpress风格 /archives/{slug}.html
 按日期归档 /archives/{year}/{month}/{day}/{slug}.html
 按分类归档 /{category}/{slug}.html

现在,我们提供了自定义组合的功能,可用参数如下:

可用参数:{cid} 日志ID、{slug} 日志缩略名、{category} 分类、{year} 年、{month} 月、{day} 日

实际上,参数还在不断丰富中,用户可以自由组合出自己想要的永久链接形式。例如:

/{category}/{year} /{month}/{day} /{slug}.html

除了链接,独立页面后缀也是可以设置的,目前提供的是三种:

 .html .htm .php

启用这个功能后,选择html,日志的地址就可以类似:

http://www.typecho.net/example.html

标签:链接, 0.5