mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 12:44:40 +03:00
see #12: support english website
This commit is contained in:
@@ -3,7 +3,11 @@
|
||||
<% } else { %>
|
||||
<div class="sidebar">
|
||||
<ul class="main-menu">
|
||||
<%- partial('partials/main_menu', { context: 'sidebar' }) %>
|
||||
<% if (page.type == 'book-en-us') { %>
|
||||
<%- partial('partials/main_menu_en', { context: 'nav' }) %>
|
||||
<% } else {%>
|
||||
<%- partial('partials/main_menu', { context: 'nav' }) %>
|
||||
<% } %>
|
||||
</ul>
|
||||
</div>
|
||||
<% } %>
|
||||
@@ -17,13 +21,28 @@
|
||||
<span style="float: right;"><a href="<%- url_for(page.path) %>"><%- page.title %></a> →</span>
|
||||
<% }) %>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<p>
|
||||
<a href="https://changkun.de">欧长坤</a> © 2016-<%- new Date().getFullYear() %> 版权所有,
|
||||
采用<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>
|
||||
</p>
|
||||
<p>
|
||||
如果你认为本书对你起到了帮助,可以<a href="/modern-cpp/about/donate.html">资助作者</a>。
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<% if (page.type == 'book-en-us') { %>
|
||||
<div class="footer">
|
||||
<p>
|
||||
<a href="https://changkun.de">Changkun Ou</a> © 2016-<%- new Date().getFullYear() %>.
|
||||
The book is licensed under <a rel="license" href="http://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>
|
||||
</p>
|
||||
<p>
|
||||
If you like the book, you could <a href="/modern-cpp/about/donate.html">donate the author</a>.
|
||||
</p>
|
||||
</div>
|
||||
<% } else {%>
|
||||
<div class="footer">
|
||||
<p>
|
||||
<a href="https://changkun.de">欧长坤</a> © 2016-<%- new Date().getFullYear() %> 版权所有,
|
||||
采用<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>
|
||||
</p>
|
||||
<p>
|
||||
如果你认为本书对你起到了帮助,可以<a href="/modern-cpp/about/donate.html">资助作者</a>。
|
||||
</p>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user