Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/indirect/jekyll-postfiles
files for your jekyll posts
https://github.com/indirect/jekyll-postfiles
Last synced: 11 days ago
JSON representation
files for your jekyll posts
- Host: GitHub
- URL: https://github.com/indirect/jekyll-postfiles
- Owner: indirect
- Created: 2010-09-06T18:21:22.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T07:29:53.000Z (over 8 years ago)
- Last Synced: 2024-10-14T20:35:42.494Z (25 days ago)
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 42
- Watchers: 4
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jekyll-postfiles
A plugin for Jekyll that adds files for each post.
## Installation
`git-archive --format=tar --remote=git://github.com/indirect/jekyll-postfiles.git master | tar -xf -`
## Usage
When you have a file you want to include in a post, create a directory named after the post in `_postfiles`, and put the file in there. Here's an example directory structure:
_posts/
2010-09-06-jekyll-postfiles-plugin.md
_postfiles/
2010-09-06-jekyll-postfiles-plugin/
file.zipTo refer to the file inside the post, use the postfile liquid tag, like this: `{% postfile file.zip %}`.