This is a fork of the Ruhoh blog engine. I have extended the engine with several new features and plugins from my own blog.
All features are now (hopefully!) fixed after the epic Ruhoh 2.1 merge.
These features are done but not merged to ruhoh main.
Dates are automatically appended to post titles when creating a new post.
ruhoh draft "My Post Title" --> 2013-01-02 My Post Title
Build and install the gem (locally) in one step - handy for gem development.
rake install
Display a gallery of photos. The two layouts it includes by default are Popeye, a lightbox-style image gallery, and a simple table grid view.
Note: This widget is available only in my fork of the ruhoh blog scaffold because it requires javascripts and styling that doesn't fit nicely into the ruhoh engine.
###Configuration
In site config, select the popeye or grid layout.
gallery:
use: popeye
###Usage:
In your blog post, include the gallery widget:
{{{widgets.gallery}}}
In the page metadata, list the photo information under the 'gallery_photos' keyword:
---
title: Foo
date: '2013-05-09'
description:
categories:
tags: []
gallery_photos:
- enlarge_image_url: http://url.org/photo1_big.jpg
preview_image_url: http://url.org/photo1_small.jpg
view_url: http://url.org/photo.html
caption: My Caption 1
- enlarge_image_url: http://url.org/photo2_big.jpg
preview_image_url: http://url.org/photo2_small.jpg
view_url: http://url.org/photo.html
caption: My Caption 2
---
preview_image_url is the small image displayed at first, and enlarge_image_url is shown when the user clicks to enlarge the gallery view. view_url and caption are shown in a link.
You can easily build the yaml metadata for a Flickr set using my Flickr Badge Maker utility.
###Styling:
Grab the stylesheets, media and javascripts from the theme folder.
lynn/javascripts/gallery
lynn/stylesheets/gallery
lynn/media/gallery
Add the stylesheets to the style loader:
{{# stylesheets.load }}
... others ...
gallery/jquery.popeye.css
gallery/jquery.popeye.style.css
{{/ stylesheets.load }}
And do the same for the javascripts:
{{# javascripts.load }}
gallery/jquery.min-1.6.2.js
gallery/jquery.popeye-2.1.js
gallery/popeye_options.js
{{/ javascripts.load }}
A widget using Share This to present the user with a bunch of options for sharing the post.
Note: This widget is available only in my fork of the ruhoh blog scaffold because there is no code involved.
You need to get your custom javascript from Share This. You'll probably also want to tweak the layout.
Shows social media icons where folks can follow you.
use: social_bar
"sites" :
[
{ "name": "RSS", "icon": "rss.jpg", "url": "/rss.xml"},
{ "name": "G+", "icon": "gplus.png", "url": "https://plus.google.com/youridhere"},
{ "name": "Facebook", "icon": "fb.png", "url": "http://www.facebook.com/yourfacebook"},
{ "name": "Flickr", "icon" : "flickr.png", "url": "http://flickr.com/yourflickr"},
]
Be sure to grab the media from my fork of the ruhoh blog scaffold.
Shows a url like "0 comments" at the bottom of each post on your index page or paginated pages (since there's a known limitation with disqus and livefyre including them on a multi-post page).
Configuration:
comments_count:
use: disqus
short_name: foo
production_url: http://myurl
# -- config for livefyre --
# site_id: 123
{{{widgets.comments_count}}}
Merged to main, will be released in the next version Widget layouts now have access to the current page context.
Released as of Ruhoh 2.1 A new config option allows you to limit the number of posts included in the RSS feed.
Released as of Ruhoh 2.1 Though not pulled directly, this functionality (a base index page showing the most recent posts) has been incorporated into the latest Ruhoh release.
Released as of Ruhoh 2.1 Post scaffold has tags in it by default.
Made obsolete by Ruhoh 2.1 This feature allowed widgets to have their own ruby files. Using plugins is more in line with the Ruhoh architecture.