https://github.com/hexojs/hexo-renderer-pug
Pug renderer for Hexo.
https://github.com/hexojs/hexo-renderer-pug
hexo hexo-plugin pug
Last synced: about 1 month ago
JSON representation
Pug renderer for Hexo.
- Host: GitHub
- URL: https://github.com/hexojs/hexo-renderer-pug
- Owner: hexojs
- License: mit
- Created: 2019-10-13T11:21:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-01T20:18:04.000Z (7 months ago)
- Last Synced: 2025-03-25T07:24:04.160Z (about 2 months ago)
- Topics: hexo, hexo-plugin, pug
- Language: JavaScript
- Homepage:
- Size: 108 KB
- Stars: 11
- Watchers: 14
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-renderer-pug
[](https://github.com/hexojs/hexo-renderer-pug/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/hexo-renderer-pug)
[](https://coveralls.io/github/hexojs/hexo-renderer-pug)Add support for [Pug].
## Install
```bash
$ npm install hexo-renderer-pug --save
```## Config
PugJS [options](https://pugjs.org/api/reference.html#options) are supported. These are the options passed into [compile()](https://pugjs.org/api/reference.html#pugcompilesource-options).
Create a `pug.config.js` in your project root:
```js
module.exports = {
compile: { // Passed to compile().
basedir: process.cwd(),
// ...Other options.
}
// No other methods are supported for now.
}
```[Pug]: http://pugjs.org/