Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jekyll-nested-menu-generator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jekyll-nested-menu-generator

  • 1.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status Gem Version

jekyll-nested-menu-generator

Provides a tag that will generated a nested navigation menu for files contained in a specified folder. Generated menus are cached during site build.

Installation

Add the following to your application's Gemfile:

gem 'jekyll-nested-menu-generator'

and then execute:

bundle install

Or install it manually:

gem install jekyll-nested-menu-generator

Usage

Say you have a number of pages, organized into folders, some of which are in other folders. For example, let's consider a website about music, with pages about albums organized into folders based on artists and year released:

 /
 |- Albums/ 
 | |- 1994/
 | | |- Oasis/
 | | | |- Definitely_Maybe/
 | | | | |- index.md
 | | |- The Offspring/
 | | | |- Smash/
 | | | | |- index.md
 | | |- index.md
 | |- 1995/
 | | |- Michael Jackson/
 | | | |- HIStory_Past_Present_and_Future_Book_I/
 | | | | |- index.md
 | | |- Radiohead/
 | | | |- The_Bends/
 | | | | |- index.md
 | | |- index.md
 | |- 1996/
 | | |- Jay Z/
 | | | |- Reasonable_Doubt/
 | | | | |- index.md
 | | |- Weezer/
 | | | |- Pinkerton/
 | | | | |- index.md
 | | |- index.md
 |- index.html

Let's assume that on index.md you would like to include a nested menu of all of the pages under Albums. To do this, simply use the 'nested_menu' liquid tag like so:

{% nested_menu Albums %}

FAQs

Package last updated on 27 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc