🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/benbalter/jekyll-default-layout

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/benbalter/jekyll-default-layout

v0.1.4
Version published
Created

Jekyll Default Layout

Silently sets default layouts for Jekyll pages and posts

Build Status

Usage

  • Add the following to your site's Gemfile:

    gem 'jekyll-default-layout'
    
  • And the following to your site's _config.yml:

    gems:
      - jekyll-default-layout
    

What it does

If no layout is specified for a Markdown post or page, the plugin automatically sets the "home", "post", "page", or "default" layout if it exists.

What layout is used:

  • /index.html - the home layout, the page layout, or the default layout, if they exist, in that order
  • A page - the page layout or the default layout, if they exist, in that order
  • A post - the post layout or the default layout, if they exist, in that order

Disabling

For a specific post or page, add layout: null to the front matter.

FAQs

Package last updated on 08 Dec 2016

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