Skip to content

Commit 370cb6d

Browse files
committed
add: donate page
1 parent c78e326 commit 370cb6d

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

assets/donate.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
# 赞助
1+
---
2+
title: 资助
3+
type: about
4+
order: 1
5+
---
6+
7+
# 资助
28

39
如果你认为本书对你起到了帮助,并希望赞助作者,可以通过下面的二维码给予支持:
410

511
|微信|支付宝|
612
|:--:|:--:|
7-
|![](wechat.jpg) | ![](alipay.jpg)|
13+
|![](../assets/wechat.jpg) | ![](../assets/alipay.jpg)|

website/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ all: clean
22
node install.js
33
python3 filter.py
44
cp ../assets/cover-2nd.png ./src/modern-cpp/assets/cover-2nd.png
5+
cp ../assets/alipay.jpg ./src/modern-cpp/assets/alipay.jpg
6+
cp ../assets/wechat.jpg ./src/modern-cpp/assets/wechat.jpg
7+
cp ../assets/donate.md ./src/modern-cpp/about/
58
cp -r ../assets/figures ./src/modern-cpp/assets/figures
69
cp -r ../exercises ./src/modern-cpp/book/
710
cp -r ../code ./src/modern-cpp/book/
@@ -13,3 +16,6 @@ clean:
1316
rm -rf ./src/modern-cpp/assets/cover-2nd.png
1417
rm -rf ./src/modern-cpp/assets/figures
1518
rm -rf public db.json src/modern-cpp/book
19+
rm -rf ./src/modern-cpp/assets/alipay.jpg
20+
rm -rf ./src/modern-cpp/assets/wechat.jpg
21+
rm -rf ./src/modern-cpp/about/donate.md

website/src/modern-cpp/about/copyright.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 版权声明
33
type: about
4-
order: 1
4+
order: 2
55
---
66

77
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="知识共享许可协议" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/80x15.png" /></a>

website/themes/moderncpp/layout/partials/main_menu.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<a class="nav-link">关于</a><span class="arrow"></span>
1616
<ul class="nav-dropdown">
1717
<li><ul>
18+
<li><a class="nav-link" href="<%- url_for("/modern-cpp/about/donate.html") %>" >资助</a></li>
1819
<li><a class="nav-link" href="<%- url_for("/modern-cpp/about/copyright.html") %>" >版权声明</a></li>
1920
</ul></li>
2021
</ul>

0 commit comments

Comments
 (0)