mi3ll/jekyll-site-helpers

There is no license information available for the latest version (dev-master) of this package.

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

dev-master / 0.0.x-dev 2018-06-08 03:05 UTC

This package is not auto-updated.

Last update: 2022-12-04 22:32:24 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