Skip to content

Commit dd5e8bd

Browse files
committed
website: shell cleanup — dead config, alt text, stray tags, vestigial assets
Remove three dead theme _config keys (google_analytics, root_domain, moderncpp_version — none referenced anywhere). Strip the unmatched trailing </a> from both book footers. Add alt text to the hero cover and header logo images. Remove the commented-out Code/Exercises/Answers nav block (Answers was never built). Delete vestigial assets: lang/de.svg (no German edition) and the unused check/down/feed/search PNGs.
1 parent 39c975e commit dd5e8bd

6 files changed

Lines changed: 6 additions & 17 deletions

File tree

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
site_description: "Modern C++ Tutorial | C++11 to C++26 On the Fly | 现代 C++ 教程 | 高速上手 C++11 到 C++26"
2-
google_analytics:
3-
root_domain: changkun.de/modern-cpp
4-
moderncpp_version: 2.0.0

website/themes/moderncpp/layout/index.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div id="hero">
1717
<div class="inner">
1818
<div class="left">
19-
<img class="hero-logo" src="<%- url_for("/modern-cpp/assets/cover-2nd-en.png") %>">
19+
<img class="hero-logo" src="<%- url_for("/modern-cpp/assets/cover-2nd-en.png") %>" alt="Modern C++ Tutorial book cover">
2020
</div><div class="right">
2121
<h4>Changkun Ou</h4>
2222
<h1>
@@ -35,7 +35,7 @@
3535
<div id="hero">
3636
<div class="inner">
3737
<div class="left">
38-
<img class="hero-logo" src="<%- url_for("/modern-cpp/assets/cover-2nd.png") %>">
38+
<img class="hero-logo" src="<%- url_for("/modern-cpp/assets/cover-2nd.png") %>" alt="现代 C++ 教程封面">
3939
</div><div class="right">
4040
<h4>欧长坤 著</h4>
4141
<h1>

website/themes/moderncpp/layout/page.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="footer">
2828
<p>
2929
<a href="https://changkun.de">Changkun Ou</a> &copy; 2016-<%- new Date().getFullYear() %>.
30-
The book is licensed under <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0</a>, code is open sourced under the <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> License. </a>
30+
The book is licensed under <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0</a>, code is open sourced under the <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> License.
3131
</p>
3232
<p>
3333
If you like the book, you could <a href="/modern-cpp/about/en/donate.html">donate the author</a>.
@@ -37,7 +37,7 @@
3737
<div class="footer">
3838
<p>
3939
<a href="https://changkun.de">欧长坤</a> &copy; 2016-<%- new Date().getFullYear() %> 版权所有,
40-
采用<a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议许可</a>,代码使用 <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> 协议开源。</a>
40+
采用<a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议许可</a>,代码使用 <a href="https://opensource.org/licenses/MIT" target="_blank">MIT</a> 协议开源。
4141
</p>
4242
<p>
4343
如果你认为本书对你起到了帮助,可以<a href="/modern-cpp/about/donate.html">资助作者</a>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<div id="header">
33
<a id="logo" href="<%- url_for("/modern-cpp/") %>">
44
<% if (isEn) { %>
5-
<img src="<%- url_for("/modern-cpp/assets/cover-2nd-en-logo.png") %>">
5+
<img src="<%- url_for("/modern-cpp/assets/cover-2nd-en-logo.png") %>" alt="Modern C++ Tutorial logo">
66
<span>Modern C++ Tutorial: C++11 to C++26 On the Fly</span>
77
<% } else {%>
8-
<img src="<%- url_for("/modern-cpp/assets/cover-2nd-logo.png") %>">
8+
<img src="<%- url_for("/modern-cpp/assets/cover-2nd-logo.png") %>" alt="现代 C++ 教程 logo">
99
<span>现代 C++ 教程:高速上手 C++11C++26</span>
1010
<% } %>
1111
</a>

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
<ul class="nav-dropdown">
44
<li><ul>
55
<li><a class="nav-link" href="<%- url_for("/modern-cpp/zh-cn/00-preface/") %>" >正文</a></li>
6-
<!-- TODO -->
7-
<!-- <li><a class="nav-link" href="<%- url_for("/modern-cpp/code/1/") %>" >代码</a></li>
8-
<li><a class="nav-link" href="<%- url_for("/modern-cpp/exercises/1/") %>" >习题</a></li>
9-
<li><a class="nav-link" href="<%- url_for("/modern-cpp/answers/1/") %>" >答案</a></li> -->
106
</ul></li>
117
</ul>
128
</li>

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
<ul class="nav-dropdown">
44
<li><ul>
55
<li><a class="nav-link" href="<%- url_for("/modern-cpp/en-us/00-preface/") %>" >Book</a></li>
6-
<!-- TODO -->
7-
<!-- <li><a class="nav-link" href="<%- url_for("/modern-cpp/code/1/") %>" >Code</a></li>
8-
<li><a class="nav-link" href="<%- url_for("/modern-cpp/exercises/1/") %>" >Exercise</a></li>
9-
<li><a class="nav-link" href="<%- url_for("/modern-cpp/answers/1/") %>" >Answers</a></li> -->
106
</ul></li>
117
</ul>
128
</li>

0 commit comments

Comments
 (0)