Skip to content

Commit

Permalink
add post_title for permalink (hexojs#684)
Browse files Browse the repository at this point in the history
* add post_title

* add post_title in en_doc

* update
  • Loading branch information
xu-song authored and JLHwung committed Apr 1, 2018
1 parent c6bc4df commit beeeeaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/docs/permalinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Variable | Description
`:day` | Published day of posts (2-digit)
`:i_day` | Published day of posts (Without leading zeros)
`:title` | Filename
`:post_title` | Post title
`:id` | Post ID
`:category` | Categories. If the post is uncategorized, it will use the `default_category` value.

Expand Down
3 changes: 2 additions & 1 deletion source/zh-cn/docs/permalinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ title: 永久链接(Permalinks)
`:day` | 文章的发表日期 (2 位数)
`:i_day` | 文章的发表日期(去掉开头的零)
`:title` | 文件名称
`:post_title` | 文章标题
`:id` | 文章 ID
`:category` | 分类。如果文章没有分类,则是 `default_category` 配置信息。

Expand Down Expand Up @@ -62,4 +63,4 @@ $ hexo new "Hello World" --lang tw

``` plain
http://localhost:4000/tw/hello-world/
```
```

0 comments on commit beeeeaa

Please sign in to comment.