No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
get_all_pages
get_child_content_ids
get_content_by_id
get_media_by_id
get_media_url_by_id

README.md

Jekyll driver for HashBrown CMS

A tool for easily accessing your HashBrown CMS content data on your site

Installation

As a GIT submodule:

$ git submodule add https://github.com/HashBrownCMS/hashbrown-jekyll-driver.git _includes/hashbrown

Make the "partials" folder.
HashBrown uses this path to list partial templates.

$ mkdir _include/partials

Example project

Check out the example project

API

The helper methods are accessed thusly:

{% include hashbrown/helper_method arg=my_value %}

If the method returns a value, it assigns it to a global "result" variable
You can consume the value by reassigning it

{% assign my_variable_name = result %}

get_all_pages

Gets a list of all pages

Returns: Array

get_child_content_ids

Gets the ids of all children of a Content node

Param Type
id string

Returns: Array

get_content_by_id

Gets a Content node by id

Param Type
id string

Returns: Content

get_media_by_id

Gets a Media object by id

Param Type
id string

Returns: Media

get_media_url_by_id

Gets a Media URL by id

Param Type
id string

Returns: string