Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dimaslanjaka/hexo-renderers

All in one theme renderers and helpers for hexo
https://github.com/dimaslanjaka/hexo-renderers

ejs hexo hexo-helper hexo-renderer hexo-theme nunjucks pug

Last synced: 2 months ago
JSON representation

All in one theme renderers and helpers for hexo

Awesome Lists containing this project

README

        

# hexo-renderers
All in one theme renderers and helpers for hexo. Load all hexo renderer engines at once.

## Features

- use any type layout inside source
- more custom helpers
- related post helpers [examples](https://github.com/dimaslanjaka/site/tree/hexo-renderers/views)

## Specify renderers
You can specify some renderers by `_config.yml`
```yaml
renderers:
engines: ['ejs', 'stylus', 'nunjucks', 'dartsass', 'pug', 'sass', 'markdown-it', 'rollup']
generator:
# enable generate /meta.json
- meta
# enable generate related posts
- related-posts
```

> - dartsass improved from `hexo-renderer-dartsass`
> - sass improved from `hexo-renderer-sass`
> when `renderers` is not configured, `hexo-renderer-sass` are being used by default.

## Config each renderer
set config for your desired renderer engine.
- [hexo-renderer-dartsass](https://github.com/KentarouTakeda/hexo-renderer-dartsass/blob/master/README.md)
- [hexo-renderer-sass](https://github.com/knksmith57/hexo-renderer-sass#_configyml)
- [hexo-renderer-markdown-it](https://github.com/hexojs/hexo-renderer-markdown-it/blob/master/README.md)

## Changelog

### 2.0.5
- chore: disable `rollup` renderer by default

### 2.0.4
- feat: support for hexo 7.3.0
- update dependencies (except markdown-it)

### 2.0.1
- fix maximum call stack exceeded

### 2.0.0
- change options structure
- add `meta.json` generator which available at `http://example.com/meta.json`
- add related post helper

### 1.0.13
- fix: invalid default markdown options

### 1.0.12
- fix: cannot find installed `markdown-it` plugins

### 1.0.5
- improved `dartsass`
- add and improved `hexo-renderer-sass`
- optimize docs

### 1.0.6
- add more helpers

### 1.0.7
- hotfix known issues

### 1.0.8
- add `hexo-renderer-markdown-it`
- hotfix nunjucks renderer
- update dependencies