Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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'