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

jekyll-version-helper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jekyll-version-helper

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

jekyll-verison-helper

This gem incorporates additional features for Jekyll sites.

Variables within _config.yml files

You can define a variable within a _config.yml file and refer to it through the same file.

To do that, first, create a key called variables, and populate it with any set of variable names you like:

variables:
  latest_version: "2.0"

In this case, a new variable called latest_version is available to use, and it's defined a "2.0". You can use this variable throughout your YAML file with the %{...} notation. For example:

defaults:
  -
    scope:
      path: ""
      type: "source"
      values:
        version: "%{latest_version}"

This sets a frontmatter of version on all the files in the source collection. It uses whatever value is defined in latest_version to set that up.

FAQs

Package last updated on 29 Dec 2014

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