How to use the ablog.blog.link_posts function in ablog

To help you get started, we’ve selected a few ablog examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bogdanvuk / pygears / docs / blog / conf.py View on Github external
posts = filter(attrgetter("order"), posts)
    posts = sorted(posts)
    for p in posts:
        p.prev = p.next = None

    for i in range(0, len(posts) - 1):
        try:
            succ = next(
                p for p in posts[i + 1:] if p.category == posts[i].category)
            posts[i].next = succ
            succ.prev = posts[i]
        except StopIteration:
            posts[i].next = None


ablog.blog.link_posts = link_posts_within_category
blog_title = 'PyGears'
blog_baseurl = 'https://www.pygears.org/'
blog_languages = {
    'en': ('English', None),
}
blog_default_language = 'en'
blog_authors = {
    'Bogdan': (u'Bogdan Vukobratović', 'https://github.com/bogdanvuk'),
}
blog_feed_archives = True
blog_feed_fulltext = True
blog_feed_length = None
disqus_shortname = 'pygears'
disqus_pages = True
# fontawesome_css_file = 'css/font-awesome.css'

ablog

A Sphinx extension that converts any documentation or personal website project into a full-fledged blog.

MIT
Latest version published 1 month ago

Package Health Score

78 / 100
Full package analysis