Skip to content

Commit

Permalink
fix: post标题尾部多一个-
Browse files Browse the repository at this point in the history
  • Loading branch information
zkz098 committed Jun 16, 2023
1 parent 51502a1 commit ec89740
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layout/post.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ block title
each cat in page.categories.toArray()
- var cat_list = cat.name + comma + cat_list
- var comma = ' - '
- var page_title = page.title + ' - ' + cat_list
if cat_list.length !== 0
- var page_title = page.title + ' - ' + cat_list
!= `${page_title}`

block header
Expand Down

0 comments on commit ec89740

Please sign in to comment.