website: host pdf version to website

Fix #73
This commit is contained in:
Changkun Ou
2019-07-19 13:59:11 +02:00
parent ff2dc605ad
commit 20f6a75ed4
7 changed files with 14 additions and 6 deletions

View File

@@ -21,7 +21,8 @@
</h1>
<h2>第二版</h2>
<p>
<a class="button white" href="<%- url_for("/modern-cpp/zh-cn/00-preface/") %>">🇨🇳 立即阅读</a>
<a class="button white" href="<%- url_for("/modern-cpp/zh-cn/00-preface/") %>">🇨🇳 在线阅读</a>
<a class="button download" href="<%- url_for("/modern-cpp/pdf/modern-cpp-tutorial-zh-cn.pdf") %>">🇨🇳 下载</a>
</p>
</div>
</div>
@@ -38,7 +39,8 @@
</h1>
<h2>Second Edition</h2>
<p>
<a class="button white" href="<%- url_for("/modern-cpp/en-us/00-preface/") %>">🇬🇧 Read Now</a>
<a class="button white" href="<%- url_for("/modern-cpp/en-us/00-preface/") %>">🇬🇧 Read Online</a>
<a class="button download" href="<%- url_for("/modern-cpp/en-us/00-preface/") %>">🇬🇧 Download</a>
</p>
</div>
</div>

View File

@@ -56,12 +56,16 @@ a.button
transition: all .15s ease
box-sizing: border-box
border: 1px solid lighten($theme, 8%)
width: 200px;
&.white
background-color: #fff
color: $theme
a.button:hover
&.download
background-color: $theme
color: #fff
a.button:hover
background-color: $theme
color: #fff
.highlight
overflow-x: auto