Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
CCKNBC committed Oct 22, 2021
1 parent 43334bc commit 6c44653
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions themes/butterfly/layout/includes/header/nav.pug
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
nav#nav
//- span#blog_name
//- a#site-name(href=url_for('/')) #[=config.title]
- var pagedescr = page.description ? page.description : 'CC的部落格欢迎您的光临'
- var subtitle = page.subtitle ? page.subtitle : page.title
if is_home()
span#blog_name
a#site-name(href=url_for('/') data-title=pagedescr) #[="CC's Blog"]
else if is_archive()
span#blog_name
a#site-name(href=url_for('/') data-title=pagedescr) #[='Archives']
else
span#blog_name
a#site-name(href=url_for('/') data-title=pagedescr) #[=subtitle]
- var pagedescr = page.description ? page.description : "CC的部落格欢迎您的光临"
- var subtitle = page.subtitle ? page.subtitle : "CC's Blog"
if is_page() || is_post() || is_category() || is_tag()
span#blog_name
a#site-name(href=url_for('/') data-title=pagedescr) #[=subtitle]
else if is_home()
span#blog_name
a#site-name(onclick='btf.scrollToDest(0, 500)' data-title=pagedescr) #[=subtitle]
else if is_archive()
span#blog_name
a#site-name(href=url_for('/') data-title=pagedescr) #[='Archives']
#menus
#toggle-menu
a.site-page
Expand Down
2 changes: 1 addition & 1 deletion themes/butterfly/layout/includes/mixins/post-ui.pug
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mixin postUI(posts)
i.far.fa-calendar-alt
span.article-meta-label=_p('post.created')
time.post-meta-date-created(datetime=date_xml(article.date) title=_p('post.created') + ' ' + full_date(article.date))=date(article.date, config.date_format)
span.article-meta__separator |
span.article-meta__separator |
i.fas.fa-history
span.article-meta-label=_p('post.updated')
time.post-meta-date-updated(datetime=date_xml(article.updated) title=_p('post.updated') + ' ' + full_date(article.updated))=date(article.updated, config.date_format)
Expand Down

0 comments on commit 6c44653

Please sign in to comment.