Blog - quilt.Blog
/Users/timothydavenport/GitHub/quilt/quilt
Provide blog capabilities for static site
source
to posts/
along with unique or default quilt and patchesQuiltingRoom
loops over pages append page data from Quilter
to Blog
atom
feed and/or rss
feedproject : quilt
version : 0.1.1
status : development
modifydate : 2015-05-13 07:09:00 -0700
createdate : 2015-04-28 06:02:00 -0700
website : https://github.com/tmthydvnprt/quilt
author : tmthydvnprt
email : tmthydvnprt@users.noreply.github.com
maintainer : tmthydvnprt
license : MIT
copyright : Copyright 2015, quilt
credits :
def create_post_list(posts=None, post_list_template='', offset='''):
create list html from posts
builtin.object
Blog
description§
blog object
descriptors§
group_by
create group dictionarygroup_by
create group dictionarymethods§
def append(self, post=None'):
append a post to the blog
def generate_atom(self'):
generate atom xml
def generate_blog_home(self'):
generate blog index page
def generate_featured(self'):
generate featured posts
def generate_group_pages(self, name='''):
generate tag or category page
def generate_rss(self'):
geneate rss xml
def group_by(self, name='''):
create group dictionary
ATOMENTRY
<entry> <title>%s<title> <link href="%s"/> <link rel="alternate" type="text/html" href="%s"/> <id>%s</id> <updated>%s</updated> <summary>%s</summary> <content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"> <p>%s</p> </div> </content> <author> <name>%s</name> <email>%s</email> </author> </entry>
ATOMXML
<?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>%s Feed</title> <subtitle>%s</subtitle> <link href="%s/feed/" rel="self"/> <link href="%s"/> <id>%s</id> <updated>%s</updated> %s </feed>
GROUPVARS
title: %s description: %s author: %s
GROUP_SINGLE_NAME
{'featured': 'featured', 'categories': 'category', 'tags': 'tag'}
GROUP_VERBS
{'featured': 'featured', 'categories': 'categorized in', 'tags': 'tagged with'}
RSSITEM
<item> <title>%s</title> <link>%s</link> <guid>%s</guid> <pubDate>%s</pubDate> <description>%s</description> </item>
RSSXML
<?xml version="1.0" encoding="utf-8"?> <rss version="2.0"> <channel> <title>%s Feed</title> <description>%s</description> <link>%s</link> <id>%s</id> <language>en-us</language> <lastBuildDate>%s</lastBuildDate> <pubDate>%s</pubDate> <managingEditor>%s</managingEditor> %s </channel> </rss>