[gimp-web/gimp-web-static] Turned on RSS/Atom feeds to test. Seem to be working?



commit d68cc8c83990fac1c3d3257f0933244c7d03cbe1
Author: Pat David <patdavid gmail com>
Date:   Tue Nov 17 16:56:57 2015 -0600

    Turned on RSS/Atom feeds to test.  Seem to be working?

 pelicanconf.py                     |   15 +++++++++++----
 themes/newgimp/templates/page.html |    7 ++++++-
 2 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/pelicanconf.py b/pelicanconf.py
index 0166098..aa027e3 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -27,9 +27,13 @@ DEFAULT_LANG = u'en'
 DEFAULT_DATE_FORMAT = "%Y-%m-%d"
 
 # Feed generation is usually not desired when developing
-FEED_ALL_ATOM = None
-CATEGORY_FEED_ATOM = None
-TRANSLATION_FEED_ATOM = None
+FEED_DOMAIN = SITEURL
+FEED_ATOM = 'feeds/atom.xml'
+FEED_RSS = 'feeds/rss.xml'
+FEED_ALL_ATOM = 'feeds/all.atom.xml'
+CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
+TRANSLATION_FEED_ATOM = 'feeds/all-%s.atom.xml'
+TRANSLATION_FEED_RSS = 'feeds/all-%s.rss.xml'
 AUTHOR_FEED_ATOM = None
 AUTHOR_FEED_RSS = None
 
@@ -50,7 +54,6 @@ RELATIVE_URLS = True
 
 
 # Pat David changes while building/testing
-
 READERS = {'html': None}
 
 # This will copy over these folders w/o modification
@@ -93,3 +96,7 @@ MD_EXTENSIONS = ['fenced_code', 'codehilite(css_class=codehilite)', 'extra', 'he
 
 DEFAULT_ORPHANS = 0
 DEFAULT_PAGINATION = 10
+
+# Debug output on pages
+# Seting to 'True' will show child/parent pages at bottom of pages
+PAGES_DEBUG = True
diff --git a/themes/newgimp/templates/page.html b/themes/newgimp/templates/page.html
index 799eda3..6abb89e 100644
--- a/themes/newgimp/templates/page.html
+++ b/themes/newgimp/templates/page.html
@@ -31,7 +31,7 @@
         </div>
     </section>
 
-       {% if page.modified %}
+       {% if page.modified  and PAGES_DEBUG == true %}
                <p>
             <small>Created: {{ page.locale_date }}</small>,  
             <small>Last updated: {{ page.locale_modified }}</small>
@@ -39,8 +39,12 @@
        {% endif %}
 
 
+    {% if PAGES_DEBUG == true %}
     <div style="border: dotted 1px #ccc; ;" class='page_content'>
         <p>Debug stuff.  Ignore</p>
+        <p>Testing PAGES_DEBUG: {% if PAGES_DEBUG %}Exists!{% else %} Doesn't exist! {% endif %} -- {{ 
PAGES_DEBUG }}</p>
+        <p>Testing PAGES_DEBUG == true: {% if PAGES_DEBUG == true %}true{% else %}not true?{% endif %} -- {{ 
PAGES_DEBUG }}</p>
+        
         <div style='font-size: 80%;'>
             <p>
                 url: {{ page.url }} <br/>
@@ -69,6 +73,7 @@
         </ul>
         </div>
     </div>
+    {% endif %}
 
 
 {% endblock %}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]