see #5, add image caption

This commit is contained in:
Changkun Ou
2018-06-24 12:35:58 +02:00
parent b2b48a91c8
commit e0a8e7679d
5 changed files with 16 additions and 6 deletions

View File

@@ -1,17 +1,13 @@
all:
rm -rf public db.json
all: clean
node install.js
rm -rf src/modern-cpp/book
python3 filter.py
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
cp -r ../exercises ./src/modern-cpp/book/
cp -r ../code ./src/modern-cpp/book/
hexo generate
mv public/index.html public/modern-cpp/index.html
s:
s: all
node_modules/serve/bin/serve.js ./public
clean:
rm -rf ./src/modern-cpp/assets/cover-2nd.png

View File

@@ -40,6 +40,8 @@ toc:
position: after
symbol: '#'
style: header-anchor
image_caption:
enable: true
# Date / Time format
## Hexo uses Moment.js to parse and display date

View File

@@ -1680,6 +1680,11 @@
"sprintf-js": "^1.0.2"
}
},
"hexo-image-caption": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/hexo-image-caption/-/hexo-image-caption-0.1.1.tgz",
"integrity": "sha1-AJG1gtoFrO35RqPmfoqiBbH036I="
},
"hexo-log": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/hexo-log/-/hexo-log-0.2.0.tgz",

View File

@@ -7,6 +7,7 @@
},
"dependencies": {
"hexo-generator-index": "^0.2.1",
"hexo-image-caption": "^0.1.1",
"hexo-renderer-ejs": "^0.3.1",
"hexo-renderer-marked": "^0.3.2",
"hexo-renderer-stylus": "^0.3.3"

View File

@@ -14,6 +14,12 @@
font-weight: bold;
font-style: oblique;
.image-caption
display: table;
margin: 0 auto;
color: #7f8c8d;
margin-top: 10px;
.content
position: relative
padding: 2.2em 0