Skip to content

Commit b84441b

Browse files
committed
add js cdn in advanced-settings, add background animation setting
1 parent bf5e7ea commit b84441b

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

app/advanced-settings.njk

+17
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,23 @@
121121
# Internal version: 4.4.0
122122
# http://fontawesome.io/
123123
fontawesome: //maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css
124+
125+
# Internal version: 1
126+
# https://www.algolia.com
127+
algolia_instant_js:
128+
algolia_instant_css:
129+
130+
# Internal version: 1.0.0
131+
# https://github.com/hustcc/canvas-nest.js
132+
canvas_nest:
133+
134+
# Internal version: r84
135+
# https://github.com/mrdoob/three.js/releases
136+
three:
137+
138+
# Internal version: 1.0.0
139+
# https://github.com/jjandxa/three_waves
140+
three_waves:
124141
{% endcode %}
125142

126143
</section>

app/theme-settings.njk

+28
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,33 @@
456456
{% endcode %}
457457
</section>
458458

459+
<section data-folding="#use-bg-animation">
460+
<h3 id="use-bg-animation">设置「背景动画」</h3>
461+
<p>
462+
NexT 自带两种背景动画效果
463+
</p>
464+
<p>
465+
编辑 <span class="label label-info">主题配置文件</span>,
466+
搜索 <code>canvas_nest</code> 或 <code>three_waves</code>,根据您的需求设置值为 <code>true</code> 或者 <code>false</code> 即可:
467+
</p>
468+
<div class="bs-callout bs-callout-warning">
469+
<strong>注意:</strong>
470+
<code>three_waves</code> 在版本 <span class="label label-success">5.1.1</span> 中引入。只能同时开启一种背景动画效果。
471+
</div>
472+
<div class="next-docs-example"><code>canvas_nest</code> 配置示例</div>
473+
{% code "yml" %}
474+
# canvas_nest
475+
canvas_nest: true //开启动画
476+
canvas_nest: false //关闭动画
477+
{% endcode %}
478+
<div class="next-docs-example"><code>three_waves</code> 配置示例</div>
479+
{% code "yml" %}
480+
# three_waves
481+
three_waves: true //开启动画
482+
three_waves: false //关闭动画
483+
{% endcode %}
484+
</section>
485+
459486
{% endblock %}
460487

461488

@@ -473,5 +500,6 @@
473500
<li><a href="#site-since">站点建立时间</a></li>
474501
<li><a href="#wechat-subscriber">订阅微信公众号</a></li>
475502
<li><a href="#use-motion">设置「动画效果」</a></li>
503+
<li><a href="#use-bg-animation">设置「背景动画」</a></li>
476504
</ul>
477505
{% endblock %}

0 commit comments

Comments
 (0)