laravel-library jekyll-site-helpers
Filters for jekyll to use on websites
mi3ll/jekyll-site-helpers
Filters for jekyll to use on websites
- Friday, June 8, 2018
- by mi3ll
- Repository
- 1 Watchers
- 2 Stars
- 11 Installations
- Ruby
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
jekyll-site-helpers
Filters
Filters in jekyll are used on jekyll tags, such as: {{ '/image/test.jpg' | cachebuster | relativity }}., (*1)
- 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., (*2)
- {{ base }}: Print the current relative path of the page
Install
Add the following to your composer.json
file., (*3)
"require":{
"mi3ll/jekyll-site-helpers": "dev-master"
}
In your extra
section, add the package to the source/_plugins directory of your jekyll site., (*4)
"extra": {
"installer-paths": [
"./src/_plugins/{$name}": ["mi3ll/jekyll-site-helpers"]
]
}
License
Version
Mellisa Hankins
- E-mail: mellisa.hankins@me.com
- Twitter: @mi3ll
dev-master
9999999-dev
Filters for jekyll to use on websites
Sources
Download
The Requires