Skip to content

Commit 12da627

Browse files
committed
fix: encoding & footer
1 parent c260cd0 commit 12da627

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

website/filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
os.makedirs(dst_filepath)
2121
print(dst_filepath)
2222
print(dst_filepath + '/index.md')
23-
with open(source+chapter, 'r') as source_file:
24-
with open(dst_filepath + '/index.md', 'w') as output_file:
23+
with open(source+chapter, 'r', encoding='utf-8') as source_file:
24+
with open(dst_filepath + '/index.md', 'w', encoding='utf-8') as output_file:
2525
for line in source_file:
2626
if any(keyword in line for keyword in ignores):
2727
continue

website/themes/moderncpp/layout/index.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<div id="footer">
2727
<p>
28-
<a href="https://changkun.de">欧长坤</a>版权所有 &copy; 2016-<%- new Date().getFullYear() %>
28+
<a href="https://changkun.de">欧长坤</a> &copy; 2016-<%- new Date().getFullYear() %> 版权所有
2929
采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议许可</a>,代码使用 <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> 协议开源。</a>
3030
</p>
3131
</div>

website/themes/moderncpp/layout/page.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</div>
2020
<div class="footer">
2121
<p>
22-
<a href="https://changkun.de">欧长坤</a>版权所有 &copy; 2016-<%- new Date().getFullYear() %>
22+
<a href="https://changkun.de">欧长坤</a> &copy; 2016-<%- new Date().getFullYear() %> 版权所有
2323
采用<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议许可</a>,代码使用 <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> 协议开源。</a>
2424
</p>
2525
</div>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
</ul>
2121
</li>
2222

23+
<li class="nav-dropdown-container about">
24+
<a class="nav-link" href="https://github.com/changkun/modern-cpp-tutorial">GitHub</a>
25+
</li>
26+
2327
<li class="nav-dropdown-container language">
2428
<a class="nav-link">
2529
<span style="content: url(/modern-cpp/images/lang/cn.svg); width: 15px; height: 15px; margin-right: 5px; vertical-align: middle; margin-bottom: 2px;"></span>

0 commit comments

Comments
 (0)