fix #5, solve image not show up issue
@@ -3,13 +3,15 @@ all:
|
||||
node install.js
|
||||
rm -rf src/modern-cpp/book
|
||||
python3 filter.py
|
||||
rm -rf ./src/modern-cpp/images/cover-2nd.png
|
||||
cp ../assets/cover-2nd.png ./src/modern-cpp/images/cover-2nd.png
|
||||
rm -rf ./src/modern-cpp/assets/cover-2nd.png
|
||||
rm -rf ./src/modern-cpp/assets/figures
|
||||
cp ../assets/cover-2nd.png ./src/modern-cpp/assets/cover-2nd.png
|
||||
cp -r ../assets/figures ./src/modern-cpp/assets/figures
|
||||
hexo generate
|
||||
mv public/index.html public/modern-cpp/index.html
|
||||
s:
|
||||
node_modules/serve/bin/serve.js ./public
|
||||
clean:
|
||||
rm ./src/modern-cpp/images/cover-2nd.png
|
||||
rm -rf src/modern-cpp/book
|
||||
rm -rf public db.json
|
||||
rm -rf ./src/modern-cpp/assets/cover-2nd.png
|
||||
rm -rf ./src/modern-cpp/assets/figures
|
||||
rm -rf public db.json src/modern-cpp/book
|
||||
|
||||
|
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 264 B |
|
Before Width: | Height: | Size: 603 B After Width: | Height: | Size: 603 B |
|
Before Width: | Height: | Size: 724 B After Width: | Height: | Size: 724 B |
|
Before Width: | Height: | Size: 529 B After Width: | Height: | Size: 529 B |
|
Before Width: | Height: | Size: 293 B After Width: | Height: | Size: 293 B |
|
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 722 B After Width: | Height: | Size: 722 B |
@@ -9,7 +9,7 @@
|
||||
<div id="hero">
|
||||
<div class="inner">
|
||||
<div class="left">
|
||||
<img class="hero-logo" src="<%- url_for("/modern-cpp/images/cover-2nd.png") %>">
|
||||
<img class="hero-logo" src="<%- url_for("/modern-cpp/assets/cover-2nd.png") %>">
|
||||
</div><div class="right">
|
||||
<h4>欧长坤 著</h4>
|
||||
<h1>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="<%- theme.site_description %>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/modern-cpp/images/cover-2nd.png">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/modern-cpp/assets/cover-2nd.png">
|
||||
<meta name="msapplication-TileColor" content="#7e2d36">
|
||||
<meta name="theme-color" content="#7e2d36">
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div id="header">
|
||||
<a id="logo" href="<%- url_for("/modern-cpp/") %>">
|
||||
<img src="<%- url_for("/modern-cpp/images/cover-2nd.png") %>">
|
||||
<img src="<%- url_for("/modern-cpp/assets/cover-2nd.png") %>">
|
||||
<span>高速上手 C++ 11/14/17</span><sup class="beta">beta</sup>
|
||||
</a>
|
||||
<ul id="nav">
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<li class="nav-dropdown-container language">
|
||||
<a class="nav-link">
|
||||
<span style="content: url(/modern-cpp/images/lang/cn.svg); width: 15px; height: 15px; margin-right: 5px; vertical-align: middle; margin-bottom: 2px;"></span>
|
||||
<span style="content: url(/modern-cpp/assets/lang/cn.svg); width: 15px; height: 15px; margin-right: 5px; vertical-align: middle; margin-bottom: 2px;"></span>
|
||||
中文
|
||||
</a>
|
||||
<!-- TODO -->
|
||||
@@ -34,7 +34,7 @@
|
||||
<ul class="nav-dropdown">
|
||||
<li>
|
||||
<a class="nav-link" target="_blank">
|
||||
<span style="content: url(/modern-cpp/images/lang/en.svg); width: 15px; height: 15px; margin-right: 5px; vertical-align: middle; margin-bottom: 2px;"></span>
|
||||
<span style="content: url(/modern-cpp/assets/lang/en.svg); width: 15px; height: 15px; margin-right: 5px; vertical-align: middle; margin-bottom: 2px;"></span>
|
||||
English (soon)
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -131,13 +131,13 @@ body.docs
|
||||
height: 24px
|
||||
top: 14px
|
||||
left: 12px
|
||||
background: url(../images/menu.png) center center no-repeat
|
||||
background: url(../assets/menu.png) center center no-repeat
|
||||
background-size: 24px
|
||||
.logo
|
||||
position: absolute
|
||||
width: 25px
|
||||
height: 30px
|
||||
background: url(../images/cover-2nd.png) center center no-repeat
|
||||
background: url(../assets/cover-2nd.png) center center no-repeat
|
||||
background-size: auto 100%
|
||||
top: 12px
|
||||
right: 12px
|
||||
|
||||