From 92746659b141a6a949751e5ef7b23e19e5dce467 Mon Sep 17 00:00:00 2001 From: blog derek Date: Fri, 13 Sep 2013 04:43:24 -0700 Subject: [PATCH 1/2] added file to make gallery recognized by pelican. recommended by __number5__ in #pelican IRC chat. --- gallery/__init__.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 gallery/__init__.py diff --git a/gallery/__init__.py b/gallery/__init__.py new file mode 100644 index 0000000..c605999 --- /dev/null +++ b/gallery/__init__.py @@ -0,0 +1 @@ +from .gallery import * From 8a846c5888a4201d83295bb22c26761e1aed790f Mon Sep 17 00:00:00 2001 From: blog derek Date: Fri, 13 Sep 2013 04:46:07 -0700 Subject: [PATCH 2/2] removed code example from article.html example because it referenced page-only commands --- gallery/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gallery/README.md b/gallery/README.md index 8cac9ac..09ac0fd 100644 --- a/gallery/README.md +++ b/gallery/README.md @@ -40,15 +40,13 @@ The dictionary key is the name of the album and the lists contain the filenames. ###article.html - {% for album, images in page.gallery.iteritems() %}

{{ article.album }}

- {% endfor %} - + ###gallery.html {% for album, images in page.gallery.iteritems() %}