Skip to content

sos4nt/jekyll-linklists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Linklists for Jekyll

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages