Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 644 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 644 Bytes

Linklists for Jekyll

A Jekyll plugin for linklists. The concept is borrowed from Shopify.

Install

Copy linklists.rb into your site's _plugins directory.

Usage

Define linklists in your site's _linklists directory:

_linklists/main-menu.yml

---
- title: Home
  url  : /
- title: About Us
  url  : /about
- title: Products
  url  : /products
- title: Contact
  url  : mailto:[email protected]

In your page or layout:

{% for link in site.linklists.main-menu.links %}
  <a href="{{ link.url }}">{{ link.title }}</a>
{% endfor %}

License

See LICENSE.