see #12: support english website

This commit is contained in:
Changkun Ou
2019-07-09 15:46:32 +02:00
parent 7c88f422ab
commit 475d6359ed
19 changed files with 3960 additions and 57 deletions

View File

@@ -1,9 +1,18 @@
<div id="header">
<a id="logo" href="<%- url_for("/modern-cpp/") %>">
<img src="<%- url_for("/modern-cpp/assets/cover-2nd.png") %>">
<span>高速上手 C++ 11/14/17/20</span><sup class="beta">beta</sup>
<% if (page.type == 'book-en-us') { %>
<img src="<%- url_for("/modern-cpp/assets/cover-2nd-en.png") %>">
<span>C++ 11/14/17/20 On the Fly</span><sup class="beta">beta</sup>
<% } else {%>
<img src="<%- url_for("/modern-cpp/assets/cover-2nd.png") %>">
<span>高速上手 C++ 11/14/17/20</span><sup class="beta">beta</sup>
<% } %>
</a>
<ul id="nav">
<%- partial('partials/main_menu', { context: 'nav' }) %>
<% if (page.type == 'book-en-us') { %>
<%- partial('partials/main_menu_en', { context: 'nav' }) %>
<% } else {%>
<%- partial('partials/main_menu', { context: 'nav' }) %>
<% } %>
</ul>
</div>