├── .gitignore ├── LICENSE ├── README.md ├── _config.yml ├── layout ├── _partial │ ├── archive.ejs │ ├── article.ejs │ ├── footer.ejs │ ├── head.ejs │ ├── header.ejs │ ├── loading.ejs │ ├── post.ejs │ ├── scripts.ejs │ └── sidebar.ejs ├── index.ejs ├── layout.ejs ├── page.ejs └── post.ejs └── source ├── favicon.png ├── icomoon ├── Read Me.txt ├── demo-files │ ├── demo.css │ └── demo.js ├── demo.html ├── fonts │ ├── icomoon.eot │ ├── icomoon.svg │ ├── icomoon.ttf │ └── icomoon.woff ├── selection.json └── style.css ├── img ├── algolia.svg ├── avatar.png ├── azure.svg ├── baidu.svg ├── google.svg └── sidebar-bg.png ├── js ├── app.js ├── jquery.js └── search.js ├── style.scss └── style ├── base.scss ├── content.scss ├── footer.scss ├── header.scss ├── highlight.scss ├── layout.scss ├── normalize.scss ├── pagination.scss ├── search.scss ├── sidebar.scss └── variables.scss /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | 3 | # Logs 4 | logs 5 | *.log 6 | npm-debug.log* 7 | yarn-debug.log* 8 | yarn-error.log* 9 | 10 | # Runtime data 11 | pids 12 | *.pid 13 | *.seed 14 | *.pid.lock 15 | 16 | # Directory for instrumented libs generated by jscoverage/JSCover 17 | lib-cov 18 | 19 | # Coverage directory used by tools like istanbul 20 | coverage 21 | 22 | # nyc test coverage 23 | .nyc_output 24 | 25 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 26 | .grunt 27 | 28 | # Bower dependency directory (https://bower.io/) 29 | bower_components 30 | 31 | # node-waf configuration 32 | .lock-wscript 33 | 34 | # Compiled binary addons (http://nodejs.org/api/addons.html) 35 | build/Release 36 | 37 | # Dependency directories 38 | node_modules/ 39 | jspm_packages/ 40 | 41 | # Typescript v1 declaration files 42 | typings/ 43 | 44 | # Optional npm cache directory 45 | .npm 46 | 47 | # Optional eslint cache 48 | .eslintcache 49 | 50 | # Optional REPL history 51 | .node_repl_history 52 | 53 | # Output of 'npm pack' 54 | *.tgz 55 | 56 | # Yarn Integrity file 57 | .yarn-integrity 58 | 59 | # dotenv environment variables file 60 | .env 61 | 62 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Art Chen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hexo Theme Element 2 | 3 | Element is another minimal theme for [Hexo](http://hexo.io). 4 | 5 | ## Dependencies 6 | 7 | This theme depends on the following Hexo plugins: 8 | 9 | * hexo-generator-tag 10 | * hexo-generator-feed 11 | * hexo-renderer-ejs 12 | * hexo-renderer-scss 13 | * hexo-renderer-marked 14 | * hexo-pagination 15 | * hexo-all-minifier 16 | * hexo-autoprefixer 17 | * hexo-front-matter 18 | 19 | ## Customization 20 | 21 | First of all change the site logo in `header.ejs`. 22 | 23 | Element is customizable via the `_config.yml` in the theme directory. 24 | 25 | Element also depends on the global `_config.yml`. For example: 26 | 27 | * Set `disqus_shortname` field to your disqus short name. 28 | * Set `theme` field to `hexo-theme-element`. 29 | * Set `title`, `url`, `author` and `description`. 30 | 31 | In addition to these settings, you may also want to edit/replace the following files: 32 | 33 | * Replace the author avatar: `source/img/avatar.png`. 34 | 35 | This theme currently supports 3 search services: 36 | 37 | * Google custom search (does not require plugin) 38 | * Algolia search (requires plugin https://github.com/LouisBarranqueiro/hexo-algoliasearch) 39 | * Microsoft Azure search (requires plugin https://github.com/artchen/hexo-azuresearch) 40 | 41 | Find search configuration in theme's `_config.yaml`: 42 | 43 | ```yaml 44 | search: 45 | enable: true 46 | service: azure # google/algolia/azure 47 | # google 48 | google_api_key: 49 | google_engine_id: 50 | # algolia 51 | algolia_app_id: 52 | algolia_api_key: 53 | algolia_index_name: 54 | # azure 55 | azure_service_name: 56 | azure_index_name: 57 | azure_query_key: 58 | ``` 59 | 60 | ## Demo 61 | 62 | [Artifact.me](https://artifact.me) 63 | 64 | ## Copyright 65 | 66 | Public resources used in this theme: 67 | 68 | * [icomoon](https://icomoon.io/) 69 | * [normalize.css](https://necolas.github.io/normalize.css/) 70 | * [Google Fonts - Oswald](https://fonts.google.com/specimen/Oswald) 71 | * [Google Fonts - Inconsolata](https://fonts.google.com/specimen/Inconsolata) 72 | * [Google Fonts - Crimson Text](https://fonts.google.com/specimen/Crimson+Text) 73 | 74 | Copyright © Art Chen 75 | 76 | Please do not remove the "Theme by Art Chen" text and links. 77 | 78 | 请不要删除页面底部的作者信息和链接。 79 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | # Meta 2 | description: Private theme for artifact.me 3 | keywords: hexo,theme,artifact,otakism 4 | 5 | # Author 6 | author_avatar: /img/avatar.png 7 | 8 | # Search 9 | search: 10 | enable: false 11 | service: google # google/algolia/azure 12 | # google 13 | google_api_key: 14 | google_engine_id: 15 | # algolia 16 | algolia_app_id: 17 | algolia_api_key: 18 | algolia_index_name: 19 | # azure 20 | azure_service_name: 21 | azure_index_name: 22 | azure_query_key: 23 | 24 | # Miscellaneous 25 | google_analytics: 26 | favicon: /favicon.png 27 | 28 | # Less 29 | less: 30 | compress: true 31 | 32 | # Comment 33 | disqus_shortname: 34 | valine: 35 | enable: false 36 | appid: 37 | appkey: 38 | notify: false 39 | verify: false 40 | placeholder: Just go go 41 | avatar: retro 42 | guest_info: nick,mail,link 43 | pageSize: 10 44 | visitor: false 45 | 46 | # use url, not username 47 | social: 48 | - name: feed 49 | url: /atom.xml 50 | - name: email 51 | url: 52 | - name: github 53 | url: https://github.com/artchen 54 | - name: twitter 55 | url: 56 | - name: google 57 | url: 58 | - name: facebook 59 | url: 60 | - name: linkedin 61 | url: 62 | - name: weibo 63 | url: 64 | - name: tumblr 65 | url: 66 | - name: dribbble 67 | url: 68 | - name: pinterest 69 | url: 70 | - name: instagram 71 | url: 72 | - name: behance 73 | url: 74 | -------------------------------------------------------------------------------- /layout/_partial/archive.ejs: -------------------------------------------------------------------------------- 1 |
Generated by IcoMoon
486 |