Skip to content

Commit

Permalink
print friendly (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikeq authored Jul 27, 2019
1 parent 42cc44c commit bf0a282
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 54 deletions.
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
language: node_js
node_js:
- "10"
branches:
only:
- master

cache:
directories:
- node_modules

before_install:
- git clone https://github.com/hexojs/hexo-theme-unit-test generate_test
- git clone https://github.com/ike-c/hexo-theme-inside.git generate_test/themes/landscape
- git clone https://github.com/ikeq/hexo-theme-inside.git generate_test/themes/landscape
- cd generate_test
- npm install
- hexo g & hexo g
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
- SEO
- Built-in `sitemap.xml`
- [Structured Data]
- Print friendly

## Quick start

Expand All @@ -71,9 +72,9 @@ theme: inside
Licensed under [MIT](LICENSE).
[build-img]: https://img.shields.io/travis/ike-c/hexo-theme-inside.svg?longCache=true&style=flat-square
[release-img]: https://img.shields.io/github/release/ike-c/hexo-theme-inside.svg?longCache=true&style=flat-square
[license-img]: https://img.shields.io/github/license/ike-c/hexo-theme-inside.svg?longCache=true&style=flat-square
[build-img]: https://img.shields.io/travis/ikeq/hexo-theme-inside.svg?longCache=true&style=flat-square
[release-img]: https://img.shields.io/github/release/ikeq/hexo-theme-inside.svg?longCache=true&style=flat-square
[license-img]: https://img.shields.io/github/license/ikeq/hexo-theme-inside.svg?longCache=true&style=flat-square
[angular]: https://angular.io
[hexo]: https://hexo.io/
Expand All @@ -83,6 +84,6 @@ Licensed under [MIT](LICENSE).
[Structured Data]: https://developers.google.com/search/docs/guides/intro-structured-data
[disqus]: https://disqus.com
[livere]: https://livere.com
[releases]: https://github.com/ike-c/hexo-theme-inside/releases
[travis]: https://travis-ci.org/ike-c/hexo-theme-inside
[releases]: https://github.com/ikeq/hexo-theme-inside/releases
[travis]: https://travis-ci.org/ikeq/hexo-theme-inside
[documentation]: https://blog.oniuo.com/theme-inside
11 changes: 6 additions & 5 deletions README_zh-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
- SEO
- 内置 `sitemap.xml`
- [Structured Data]
- 打印友好

## 开始使用

Expand All @@ -70,9 +71,9 @@ theme: inside
Licensed under [MIT](LICENSE).
[build-img]: https://img.shields.io/travis/ike-c/hexo-theme-inside.svg?longCache=true&style=flat-square
[release-img]: https://img.shields.io/github/release/ike-c/hexo-theme-inside.svg?longCache=true&style=flat-square
[license-img]: https://img.shields.io/github/license/ike-c/hexo-theme-inside.svg?longCache=true&style=flat-square
[build-img]: https://img.shields.io/travis/ikeq/hexo-theme-inside.svg?longCache=true&style=flat-square
[release-img]: https://img.shields.io/github/release/ikeq/hexo-theme-inside.svg?longCache=true&style=flat-square
[license-img]: https://img.shields.io/github/license/ikeq/hexo-theme-inside.svg?longCache=true&style=flat-square
[angular]: https://angular.io
[hexo]: https://hexo.io/
Expand All @@ -82,6 +83,6 @@ Licensed under [MIT](LICENSE).
[Structured Data]: https://developers.google.com/search/docs/guides/intro-structured-data
[disqus]: https://disqus.com
[livere]: https://livere.com
[releases]: https://github.com/ike-c/hexo-theme-inside/releases
[travis]: https://travis-ci.org/ike-c/hexo-theme-inside
[releases]: https://github.com/ikeq/hexo-theme-inside/releases
[travis]: https://travis-ci.org/ikeq/hexo-theme-inside
[documentation]: https://blog.oniuo.com/theme-inside
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ footer:
# theme: false

# Custom text.
# custom: Hosted by <a target="_blank" rel="external nofollow noopener"
# custom: Hosted by <a target="_blank" rel="external nofollow"
# href="https://pages.github.com/"><b>Github Pages</b></a>


Expand Down Expand Up @@ -277,7 +277,7 @@ copyright:

# license: Attribution-NonCommercial-NoDerivatives 4.0 International
# (<a href=\"https://creativecommons.org/licenses/by-nc-sa/4.0/\"
# rel=\"external nofollow noopener\" target=\"_blank\">CC BY-NC-ND 4.0</a>)
# rel=\"external nofollow\" target=\"_blank\">CC BY-NC-ND 4.0</a>)

# Display published date, default to `false`
# published: false
Expand Down
4 changes: 2 additions & 2 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ module.exports = function (hexo) {
}

// override boolean value to html string
if (result.footer.powered) result.footer.powered = __('footer.powered', '<a href="https://hexo.io" target="_blank" rel="external nofollow noopener">Hexo</a>')
if (result.footer.theme) result.footer.theme = __('footer.theme') + ' - <a href="https://github.com/ike-c/hexo-theme-inside" target="_blank" rel="external nofollow noopener">Inside</a>'
if (result.footer.powered) result.footer.powered = __('footer.powered', '<a href="https://hexo.io" target="_blank" rel="external nofollow">Hexo</a>')
if (result.footer.theme) result.footer.theme = __('footer.theme') + ' - <a href="https://github.com/ikeq/hexo-theme-inside" target="_blank" rel="external nofollow">Inside</a>'

result.runtime = {
hash: utils.md5([
Expand Down
2 changes: 1 addition & 1 deletion lib/configSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"license": {
"type": "string",
"contentMediaType": "text/html" ,
"default": "Attribution-NonCommercial-NoDerivatives 4.0 International (<a href=\"https://creativecommons.org/licenses/by-nc-sa/4.0/\" rel=\"external nofollow noopener\" target=\"_blank\">CC BY-NC-ND 4.0</a>)"
"default": "Attribution-NonCommercial-NoDerivatives 4.0 International (<a href=\"https://creativecommons.org/licenses/by-nc-sa/4.0/\" rel=\"external nofollow\" target=\"_blank\">CC BY-NC-ND 4.0</a>)"
},
"published": { "type": "boolean" },
"updated": { "type": "boolean" },
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/ike-c/hexo-theme-inside.git"
"url": "git+https://github.com/ikeq/hexo-theme-inside.git"
},
"keywords": [
"hexo",
Expand All @@ -20,9 +20,9 @@
],
"license": "MIT",
"bugs": {
"url": "https://github.com/ike-c/hexo-theme-inside/issues"
"url": "https://github.com/ikeq/hexo-theme-inside/issues"
},
"homepage": "https://github.com/ike-c/hexo-theme-inside#readme",
"homepage": "https://github.com/ikeq/hexo-theme-inside#readme",
"devDependencies": {
"babel-core": "^6.26.3",
"babel-preset-env": "^1.7.0",
Expand Down
2 changes: 1 addition & 1 deletion source/_resources.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"styles":["styles.b052e0427aa70b7d0587.css"],"scripts":["runtime.9c308a63d02029c20228.js","polyfills-es5.613d1909ec381c0aefb7.js","polyfills.23aa31104b29f3163090.js"],"locales":{"ja":"main.1c6c0dbb8fec445fc42a.ja.js","en":"main.7c07007d02c08b471cdf.en.js","zh-Hant":"main.9d756d57e227aba70f33.zh-Hant.js","zh-Hans":"main.d55b8d92fb07c381cd17.zh-Hans.js"}}
{"styles":["styles.27f292de72d9e7a2cdaf.css"],"scripts":["runtime.9c308a63d02029c20228.js","polyfills-es5.613d1909ec381c0aefb7.js","polyfills.23aa31104b29f3163090.js"],"locales":{"zh-Hant":"main.2ce44af30eb8436e5d50.zh-Hant.js","en":"main.99f2ed354d17ddb7e297.en.js","ja":"main.dbd6cdb5a87dffb7779f.ja.js","zh-Hans":"main.e8fb83af303ddf146491.zh-Hans.js"}}
2 changes: 1 addition & 1 deletion source/_theme.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions source/styles.27f292de72d9e7a2cdaf.css

Large diffs are not rendered by default.

24 changes: 0 additions & 24 deletions source/styles.b052e0427aa70b7d0587.css

This file was deleted.

0 comments on commit bf0a282

Please sign in to comment.