add theme
This commit is contained in:
8
themes/butterfly/layout/includes/post/outdate-notice.pug
Normal file
8
themes/butterfly/layout/includes/post/outdate-notice.pug
Normal file
@@ -0,0 +1,8 @@
|
||||
- const { limit_day, message_prev, message_next, position} = theme.noticeOutdate
|
||||
- const notice_data = { limitDay: limit_day, messagePrev: message_prev, messageNext: message_next, postUpdate: full_date(page.updated)}
|
||||
if position === 'top'
|
||||
#post-outdate-notice(data=notice_data hidden)
|
||||
!=page.content
|
||||
else
|
||||
!=page.content
|
||||
#post-outdate-notice(data=notice_data hidden)
|
||||
23
themes/butterfly/layout/includes/post/post-copyright.pug
Normal file
23
themes/butterfly/layout/includes/post/post-copyright.pug
Normal file
@@ -0,0 +1,23 @@
|
||||
if theme.post_copyright.enable && page.copyright !== false
|
||||
- const author = page.copyright_author || config.author
|
||||
- const authorHref = page.copyright_author_href || theme.post_copyright.author_href || config.url
|
||||
- const url = page.copyright_url || page.permalink
|
||||
- const info = page.copyright_info || _p('post.copyright.copyright_content', theme.post_copyright.license_url, theme.post_copyright.license, config.url, config.title)
|
||||
.post-copyright
|
||||
.post-copyright__author
|
||||
span.post-copyright-meta
|
||||
i.fas.fa-circle-user.fa-fw
|
||||
= _p('post.copyright.author') + ": "
|
||||
span.post-copyright-info
|
||||
a(href=authorHref)= author
|
||||
.post-copyright__type
|
||||
span.post-copyright-meta
|
||||
i.fas.fa-square-arrow-up-right.fa-fw
|
||||
= _p('post.copyright.link') + ": "
|
||||
span.post-copyright-info
|
||||
a(href=url_for(url))= theme.post_copyright.decode ? decodeURI(url) : url
|
||||
.post-copyright__notice
|
||||
span.post-copyright-meta
|
||||
i.fas.fa-circle-exclamation.fa-fw
|
||||
= _p('post.copyright.copyright_notice') + ": "
|
||||
span.post-copyright-info!= info
|
||||
7
themes/butterfly/layout/includes/post/post-summary.pug
Normal file
7
themes/butterfly/layout/includes/post/post-summary.pug
Normal file
@@ -0,0 +1,7 @@
|
||||
.ai-summary
|
||||
.ai-explanation(style="display: block;" data-summary=page.summary)=theme.ai_summary.loadingText
|
||||
.ai-title
|
||||
.ai-title-left
|
||||
i.fa-brands.fa-slack
|
||||
.ai-title-text=theme.ai_summary.title
|
||||
.ai-tag#ai-tag= theme.ai_summary.modelName
|
||||
12
themes/butterfly/layout/includes/post/reward.pug
Normal file
12
themes/butterfly/layout/includes/post/reward.pug
Normal file
@@ -0,0 +1,12 @@
|
||||
.post-reward
|
||||
.reward-button
|
||||
i.fas.fa-qrcode
|
||||
= theme.reward.text || _p('donate')
|
||||
.reward-main
|
||||
ul.reward-all
|
||||
each item in theme.reward.QR_code
|
||||
- const clickTo = item.link || item.img
|
||||
li.reward-item
|
||||
a(href=url_for(clickTo) target='_blank')
|
||||
img.post-qr-code-img(src=url_for(item.img) alt=item.text)
|
||||
.post-qr-code-desc=item.text
|
||||
Reference in New Issue
Block a user