mi3ll / jekyll-site-helpers
Filters for jekyll to use on websites
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Language:Ruby
Type:laravel-library
Requires
This package is not auto-updated.
Last update: 2024-11-18 07:25:31 UTC
README
Filters
Filters in jekyll are used on jekyll tags, such as: {{ '/image/test.jpg' | cachebuster | relativity }}.
- relativity: Make the path of the tag input relative to the page location
- cachebuster: Suffix the file modification time to the tag input, to be used with html5-boilerplate server configs. Should be used before relativity.
- filebuster: Same as above, but it will use a defined variable in your _config.yml file instead, so it doesn't have to be used for relativity, and the files don't have to exist yet.
You can learn to use them by opening the ruby plugins and reading the comments.
Tags
- {{ base }}: Print the current relative path of the page
Install
Add the following to your composer.json
file.
"require":{
"mi3ll/jekyll-site-helpers": "dev-master"
}
In your extra
section, add the package to the source/_plugins directory of your jekyll site.
"extra": {
"installer-paths": [
"./src/_plugins/{$name}": ["mi3ll/jekyll-site-helpers"]
]
}
License
- MIT
Version
- 2016
Contact
Mellisa Hankins
- E-mail: mellisa.hankins@me.com
- Twitter: @mi3ll