23maverick23/sublime-jekyll

Add multi-level dictionary support to front-matter extras

Closed this issue · 2 comments

This is for tracking the enhancement suggested by @atomi in issue #22 .

This will allow for a truly custom front-matter experience.

Jekyll.sublime-settings

"default_post_extras": { 
    "description": "default-description",  
    "image": {
        "feature": "imagename.jpg", 
        "credit": "author"
        }
}

Jekyll front-matter output

---
layout: post
title: here is a title
published: True
image:
    credit: author
    feature: imagename.jpg
description: default-description

---

Full details available via commit 173da20

Mmmm pretty. Gotta love Python. Thanks!