view publishconf.py @ 43:320e1b36eb7e

limit the number of items in the atom feed
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 30 Sep 2014 04:08:41 +0200
parents 7380bf280fc9
children e99db3bc53c1
line wrap: on
line source

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

# This file is only used if you use `make publish` or
# explicitly specify it as your config file.

import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *

SITEURL = 'http://xanthippe.duckdns.org/blog'
RELATIVE_URLS = False

FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
FEED_MAX_ITEMS = 10