45 | <%= __('article.read_more') %> 46 |
47 | <% } else { %> 48 | <%- post.content %> 49 | <% } %> 50 |├── .gitignore ├── LICENSE ├── README.md ├── _config.yml.example ├── languages ├── de.yml ├── en.yml ├── es.yml ├── fr.yml ├── ko.yml ├── pl.yml ├── ru.yml ├── zh-cn.yml └── zh-tw.yml ├── layout ├── archive.ejs ├── categories.ejs ├── category.ejs ├── comment │ ├── changyan.ejs │ ├── disqus.ejs │ ├── facebook.ejs │ ├── gitment.ejs │ ├── isso.ejs │ ├── livere.ejs │ ├── valine.ejs │ └── youyan.ejs ├── common │ ├── article.ejs │ ├── footer.ejs │ ├── head.ejs │ ├── languages.ejs │ ├── navbar.ejs │ ├── paginator.ejs │ └── scripts.ejs ├── index.ejs ├── layout.ejs ├── plugins │ ├── clipboard.ejs │ ├── gallery.ejs │ ├── google-analytics.ejs │ ├── katex.ejs │ └── mathjax.ejs ├── post.ejs ├── search │ ├── google-cse.ejs │ └── insight.ejs ├── share │ ├── addthis.ejs │ └── sharethis.ejs ├── tag.ejs └── tags.ejs ├── lib ├── i18n.js └── rfc5646.js ├── package-lock.json ├── package.json ├── scripts ├── 01_check.js ├── 10_i18n.js ├── 99_config.js ├── 99_content.js └── 99_tags.js └── source ├── css ├── insight.scss └── style.scss ├── images ├── check.svg ├── exclamation.svg ├── info.svg ├── logo.png ├── question.svg └── quote-left.svg └── js ├── insight.js └── script.js /.gitignore: -------------------------------------------------------------------------------- 1 | _config.yml 2 | _config.*.yml 3 | node_modules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 PPOffice 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 |
3 |
A simple and retro styled Hexo theme, concentrating more on your ideas.
4 |
5 | Preview |
6 | Download |
7 | Documentation
8 |
Comment plugins | 22 ||||||||
---|---|---|---|---|---|---|---|
Changyan | 25 |Disqus | 26 |Facebook comments plugin | 27 |Gitment | 28 |Isso | 29 |LiveRe | 30 |Valine | 31 |Youyan | 32 |
Search plugins | 37 |Share plugins | 38 |||
---|---|---|---|
Insight Search | 41 |Google custom search | 42 |AddThis | 43 |ShareThis | 44 |
Other plugins | 49 |||
---|---|---|
Hexo Tag Plugin | 52 |lightGallery & 53 | Justified Gallery | 54 |MathJax | 55 |
![]() |
66 | ![]() |
67 | ![]() |
68 | ![]() |
69 |
_config.yml | 80 |_config.zh-cn.yml | 81 |post.md | 82 |
---|---|---|
85 | menu: 86 | Archives: /archives 87 | Lifestyle: /categories/LifeStyle88 | |
89 |
90 | menu: 91 | 归档: /archives 92 | 生活: /categories/LifeStyle93 | |
94 |
95 | title: A Simple Post 96 | menu: 97 | Go Home: /index.html 98 | --- 99 | # Here is some simple markdown.100 | |
101 |
![]() |
104 | ![]() |
105 | ![]() |
106 |
appid
or conf
for Changyan. Please set it in _config.yml
.
4 | shortname
for Disqus. Please set it in _config.yml
.
77 | owner
, repo
, client_id
, or client_secret
for Gitment.
5 | Please set it in _config.yml
.
6 | url
for Isso. Please set it in _config.yml
.
4 | uid
for LiveRe. Please set it in _config.yml
.
4 | appId
or appKey
for Valine. Please set it in _config.yml
.
4 | uid
for Youyan. Please set it in _config.yml
.
4 | 45 | <%= __('article.read_more') %> 46 |
47 | <% } else { %> 48 | <%- post.content %> 49 | <% } %> 50 |Update your browser to view this website correctly. Update my browser now
8 | 9 |cx
value for the Google CSE. Please set it in _config.yml
.
15 | install_url
to use AddThis. Please set it in _config.yml
.
4 | install_url
to use ShareThis. Please set it in _config.yml
.
4 | ' + hexo.render.renderSync({ text: content, engine: 'markdown' }) + ''; 9 | }, { ends: true }); 10 | 11 | const rEscapeContent = /
').addClass('ins-search-preview').text(preview) : null)
24 | .attr('data-url', url);
25 | }
26 |
27 | function sectionFactory (type, array) {
28 | var sectionTitle;
29 | var $searchItems;
30 | if (array.length === 0) return null;
31 | sectionTitle = CONFIG.TRANSLATION[type];
32 | switch (type) {
33 | case 'POSTS':
34 | case 'PAGES':
35 | $searchItems = array.map(function (item) {
36 | // Use config.root instead of permalink to fix url issue
37 | return searchItem('file', item.title, null, item.text.slice(0, 150), item.link);
38 | });
39 | break;
40 | case 'CATEGORIES':
41 | case 'TAGS':
42 | $searchItems = array.map(function (item) {
43 | return searchItem(type === 'CATEGORIES' ? 'folder' : 'tag', item.name, item.slug, null, item.link);
44 | });
45 | break;
46 | default:
47 | return null;
48 | }
49 | return section(sectionTitle).append($searchItems);
50 | }
51 |
52 | function parseKeywords (keywords) {
53 | return keywords.split(' ').filter(function (keyword) {
54 | return !!keyword;
55 | }).map(function (keyword) {
56 | return keyword.toUpperCase();
57 | });
58 | }
59 |
60 | /**
61 | * Judge if a given post/page/category/tag contains all of the keywords.
62 | * @param Object obj Object to be weighted
63 | * @param Array
<%= __('article.comments') %>
83 | <%- partial('comment/' + get_config('comment.type')) %> 84 |