-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1697 from ivan-nginx/master
Fixes and enhancements. [12]
- Loading branch information
Showing
39 changed files
with
1,177 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ source/vendors/* | |
source/lib/* | ||
source/js/src/affix.js | ||
source/js/src/scrollspy.js | ||
source/js/src/js.cookie.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{% if theme.post_copyright.enable %} | ||
<ul class="post-copyright"> | ||
<li class="post-copyright-author"> | ||
<strong>{{ __('post.copyright.author') + __('symbol.colon') }}</strong> | ||
{{ config.author }} | ||
</li> | ||
<li class="post-copyright-link"> | ||
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong> | ||
<a href="{{ post.permalink }}" title="{{ post.title }}">{{ post.permalink }}</a> | ||
</li> | ||
<li class="post-copyright-license"> | ||
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong> | ||
{{ __('post.copyright.license_content', theme.post_copyright.license_url, theme.post_copyright.license) }} | ||
</li> | ||
</ul> | ||
{% endif %} | ||
<ul class="post-copyright"> | ||
<li class="post-copyright-author"> | ||
<strong>{{ __('post.copyright.author') + __('symbol.colon') }}</strong> | ||
{{ config.author }} | ||
</li> | ||
<li class="post-copyright-link"> | ||
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong> | ||
<a href="{{ post.permalink }}" title="{{ post.title }}">{{ post.permalink }}</a> | ||
</li> | ||
<li class="post-copyright-license"> | ||
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong> | ||
{{ __('post.copyright.license_content', theme.post_copyright.license_url, theme.post_copyright.license) }} | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
{% if theme.alipay or theme.wechatpay %} | ||
<div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;"> | ||
<div>{{ theme.reward_comment }}</div> | ||
<button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}"> | ||
<span>赏</span> | ||
</button> | ||
<div id="QR" style="display: none;"> | ||
{% if theme.wechatpay %} | ||
<div id="wechat" style="display: inline-block"> | ||
<img id="wechat_qr" src="{{ theme.wechatpay }}" alt="{{ theme.author }} WeChat Pay"/> | ||
<p>微信打赏</p> | ||
</div> | ||
{% endif %} | ||
{% if theme.alipay %} | ||
<div id="alipay" style="display: inline-block"> | ||
<img id="alipay_qr" src="{{ theme.alipay }}" alt="{{ theme.author }} Alipay"/> | ||
<p>支付宝打赏</p> | ||
</div> | ||
{% endif %} | ||
</div> | ||
<div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;"> | ||
<div>{{ theme.reward_comment }}</div> | ||
<button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}"> | ||
<span>Donate</span> | ||
</button> | ||
<div id="QR" style="display: none;"> | ||
|
||
{% if theme.wechatpay %} | ||
<div id="wechat" style="display: inline-block"> | ||
<img id="wechat_qr" src="{{ theme.wechatpay }}" alt="{{ theme.author }} WeChat Pay"/> | ||
<p>WeChat Pay</p> | ||
</div> | ||
{% endif %} | ||
|
||
{% if theme.alipay %} | ||
<div id="alipay" style="display: inline-block"> | ||
<img id="alipay_qr" src="{{ theme.alipay }}" alt="{{ theme.author }} Alipay"/> | ||
<p>Alipay</p> | ||
</div> | ||
{% endif %} | ||
|
||
{% if theme.bitcoin %} | ||
<div id="bitcoin" style="display: inline-block"> | ||
<img id="bitcoin_qr" src="{{ theme.bitcoin }}" alt="{{ theme.author }} Bitcoin"/> | ||
<p>Bitcoin</p> | ||
</div> | ||
{% endif %} | ||
|
||
</div> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
{% if theme.wechat_subscriber.enabled %} | ||
<div id="wechat_subscriber" style="display: block; padding: 10px 0; margin: 20px auto; width: 100%; text-align: center"> | ||
<img id="wechat_subscriber_qcode" src="{{ theme.wechat_subscriber.qcode }}" alt="{{ theme.author }} wechat" style="width: 200px; max-width: 100%;"/> | ||
<div>{{ theme.wechat_subscriber.description }}</div> | ||
</div> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% | ||
set scripts = [ | ||
'src/affix.js', | ||
'src/schemes/pisces.js' | ||
] | ||
%} | ||
|
||
{% for script in scripts %} | ||
<script type="text/javascript" src="{{ url_for(theme.js) }}/{{ script }}?v={{ theme.version }}"></script> | ||
{% endfor %} |
Oops, something went wrong.