https://github.com/theme-next/theme-next-canvas-nest
canvas-nest.js for NexT.
https://github.com/theme-next/theme-next-canvas-nest
canvas-nest module theme-next
Last synced: 12 months ago
JSON representation
canvas-nest.js for NexT.
- Host: GitHub
- URL: https://github.com/theme-next/theme-next-canvas-nest
- Owner: theme-next
- License: mit
- Created: 2017-12-31T08:11:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-12-17T04:00:34.000Z (over 5 years ago)
- Last Synced: 2025-03-14T19:50:58.483Z (about 1 year ago)
- Topics: canvas-nest, module, theme-next
- Homepage:
- Size: 10.7 KB
- Stars: 55
- Watchers: 14
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Theme NexT Canvas Nest

[canvas-nest.js](https://github.com/hustcc/canvas-nest.js) for [NexT](https://github.com/theme-next).
## Install
### Step 1 → Go to Hexo dir
Change dir to **Hexo** directory. There must be `scaffolds`, `source`, `themes` and other directories:
```sh
$ cd hexo
$ ls
scaffolds source themes _config.yml package.json
```
### Step 2 → Create `footer.swig`
Create a file named `footer.swig` in `hexo/source/_data` directory (create `_data` directory if it does not exist).
Edit this file and add the following content:
```xml
```
You can customize these options.
### Step 3 → Set it up
In the NexT `_config.yml`, uncomment `footer` under the `custom_file_path` section.
```yml
# Define custom file paths.
# Create your custom files in site directory `source/_data` and uncomment needed files below.
custom_file_path:
#head: source/_data/head.swig
#header: source/_data/header.swig
#sidebar: source/_data/sidebar.swig
#postMeta: source/_data/post-meta.swig
#postBodyEnd: source/_data/post-body-end.swig
footer: source/_data/footer.swig
#bodyEnd: source/_data/body-end.swig
#variable: source/_data/variables.styl
#mixin: source/_data/mixins.styl
#style: source/_data/styles.styl
```