Exemplo n.º 1
0
def atom_feed():
    pages = util.sort_by('published', site.pages_by_destination('atom_feed', 'date', 30), True)
    response = make_response(render_template('atom.xml', pages=pages))
    response.headers['Content-Type'] = 'application/xml; charset=utf-8'
    return response
Exemplo n.º 2
0
def sitemap_feed():
    response = make_response(
        render_template('sitemap.xml',
                        pages=util.sort_by('published', site.pages(), True)))
    response.headers['Content-Type'] = 'application/xml; charset=utf-8'
    return response