Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tcrowe/slush-hexo-theme
⚠️ Need slush dev to help fix for newest node and slush version | Moved to https://tcrowe.commons.host/contact
https://github.com/tcrowe/slush-hexo-theme
ejs hexo hexo-theme nunjucks pug slush slushgenerator swig
Last synced: 4 months ago
JSON representation
⚠️ Need slush dev to help fix for newest node and slush version | Moved to https://tcrowe.commons.host/contact
- Host: GitHub
- URL: https://github.com/tcrowe/slush-hexo-theme
- Owner: tcrowe
- Archived: true
- Created: 2017-11-13T09:35:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-20T03:35:49.000Z (about 6 years ago)
- Last Synced: 2024-09-22T12:31:33.175Z (4 months ago)
- Topics: ejs, hexo, hexo-theme, nunjucks, pug, slush, slushgenerator, swig
- Language: HTML
- Homepage:
- Size: 107 KB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-starred - tcrowe/slush-hexo-theme - ⚠️ Need slush dev to help fix for newest node and slush version | Moved to https://tcrowe.commons.host/contact (others)
README
# slush-hexo-theme
Generate a [hexo](https://hexo.io) theme
[Yeoman version available too](https://github.com/tcrowe/generator-hexo-theme)
Template choices:
+ ejs
+ nunjucks
+ pug
+ swigStyle choices:
+ stylus
+ sass
+ scss
+ less
+ cssOther:
+ hexo scripts
+ bower: .bowerrc, bower.json
+ npm: package.json
+ .gitignore
+ .editorconfig---
## Install globally
```sh
npm install --global slush
npm install --global slush-hexo-theme
```---
## How to use it
If you don't have a site yet create one with `hexo init` [hexo-cli](https://github.com/hexojs/hexo-cli).
```sh
mkdir my-site
cd my-site
hexo init
```Navigate to the directory you want to place the theme project in (most likely `themes/`).
```sh
# from the site root
cd themes# make a new theme directory
mkdir my-theme
cd my-theme# generate
slush hexo-theme
```**It will not automatically overwrite an existing file. Overwrites are confirmed with the user.**
1. Check `_config.yml` in your **main blog directory**
* Set `theme` property to your theme name, activating this theme
2. Check `_config.yml` in your **theme directory**
* Change menu items if needed
* Change stylesheet and scripts list if needed
3. Navigate to your main blog directory
4. `hexo server --debug`## Hexo renderers
It might be necessary to goto the blog directory and install a specific renderer for the template language you have chosen. Swig are built into Hexo.
```sh
# templates
npm install hexo-renderer-ejs
npm install hexo-renderer-njks
npm install hexo-render-pug# styles
npm install hexo-renderer-stylus
npm install hexo-renderer-less
npm install hexo-renderer-sass
```---
## Help!
+ hexo gitter chat https://gitter.im/hexojs/hexo
+ [post an issue](https://github.com/tcrowe/slush-hexo-theme/issues)---
## Contribute
It's a community project. Want to help?
+ Fix a [bug](https://github.com/tcrowe/slush-hexo-theme/issues)
+ GitHub star ⭐
+ `npm star slush-hexo-theme`
+ Do we need to implement any helpers? https://hexo.io/docs/helpers.htmlKnow another template language hexo users need?
1. Fork
2. Copy an existing template directory
3. Port it to the new language
4. Test
5. Create pull request---
### Development
```sh
# test the development build
# it's faster than prd script
npm run dev# build before publishing
# prd = production build
npm run prd# clean up the test site
npm run clean
````npm run prd` does everything needed:
+ clean
+ link
+ testIf you want to add a template language please copy one and port it so it keeps roughly the same structure.
---
## Thank you contributors
+ [moosoul](https://github.com/moosoul)
+ [jonashao](https://github.com/jonashao)## Resources
+ Theme docs https://hexo.io/docs/themes.html
+ Submit your theme https://github.com/hexojs/hexo-theme-unit-test
+ Slush docs http://slushjs.github.io