Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pirtleshell/hexo-include
A Hexo plugin for including raw content of any text file into a post
https://github.com/pirtleshell/hexo-include
hexo include insert raw-text
Last synced: 11 days ago
JSON representation
A Hexo plugin for including raw content of any text file into a post
- Host: GitHub
- URL: https://github.com/pirtleshell/hexo-include
- Owner: pirtleshell
- License: mit
- Created: 2016-10-07T18:45:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-13T21:27:29.000Z (about 8 years ago)
- Last Synced: 2024-11-02T00:50:14.795Z (18 days ago)
- Topics: hexo, include, insert, raw-text
- Language: JavaScript
- Size: 6.84 KB
- Stars: 17
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-include
A [Hexo](https://github.com/hexojs/hexo) plugin for including the raw content of a text file into a post directly from its markdown. Easily insert pre-written HMTL, JS, or the contents of _any_ text file into the body of your post or page.
## Usage
Insert the following into the post's markdown where you want the contents of the external file inserted. All file paths are relative to your `source` directory.
```
{% include path/to/file.bar %}
```## Install
Install with [npm](https://www.npmjs.com/) from the base directory of your Hexo site:
```
$ npm install --save --only=prod hexo-include
```The `--only=prod` ensures that the development dependencies are not installed. If you want to run the tests, remove this flag. More info [here](https://docs.npmjs.com/cli/install).
## License
MIT (c) 2016 Robert Pirtle.