NAME§

Blog - quilt.Blog

FILE§

/Users/timothydavenport/GitHub/quilt/quilt

DESCRIPTION§

Provide blog capabilities for static site

  1. set source to posts/ along with unique or default quilt and patches
  2. as QuiltingRoom loops over pages append page data from Quilter to Blog
  3. create list of posts in reverse chronological order
  4. create group pages for tags and/or categories:
    1. create page that list all groups (e.g. list all tags)
    2. create page for each group with list of associated posts in reverse chronological order
  5. generate atom feed and/or rss feed

project : 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 :

MODULES§

os

FUNCTIONS§

def create_post_list(posts=None, post_list_template='', offset='''):

create list html from posts

CLASSES§

builtin.object
Blog

class Blog§

description§


blog object

descriptors§


group_by
create group dictionary

group_by
create group dictionary

methods§


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

DATA§

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>
markdown