An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Jekyll Site Config

Add custom data to Jekyll site object

![](assets/jekyll-site-config.png)

## 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 }}
```