https://github.com/clayrisser/jekyll-site-config
Add custom data to Jekyll site object
https://github.com/clayrisser/jekyll-site-config
config jekyll monkey-patch override site
Last synced: 3 months ago
JSON representation
Add custom data to Jekyll site object
- Host: GitHub
- URL: https://github.com/clayrisser/jekyll-site-config
- Owner: clayrisser
- License: mit
- Created: 2018-01-09T23:06:29.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-07-12T12:53:15.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T19:08:28.442Z (3 months ago)
- Topics: config, jekyll, monkey-patch, override, site
- Language: Ruby
- Size: 1010 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jekyll Site Config
Add custom data to Jekyll site object

## Usage
```sh
gem "jekyll-site-config"
``````rb
require "jekyll-site-config"
``````rb
JekyllSiteConfig.set_config("hello", {
"world" => "Hello, world",
"texas" => "Howdy, Texas"
})
``````md
---
layout: post
title: "Welcome to Jekyll!"
date: 2018-01-08 20:25:28 -0600
categories: jekyll update
---{{ site.hello.world }}
{{ site.hello.texas }}
```