blog.templatetags.blog_tags¶
Functions
get_archive_digest ([months_count]) |
Simple tag |
get_blog_menu_links () |
Simple tag |
get_categories () |
Simple tag |
get_disqus_shortname |
|
get_posts_digest ([featured, posts_count]) |
Simple tag |
get_site_name |
|
get_url |
|
render_disqus_comments |
|
render_google_analytics |
|
render_paginator (context[, adjacent_pages]) |
Inclusion tag |
Classes
SideBarObjects (objects, more) |
Bases:
tuple
Alias for field number 1
Alias for field number 0
Bases:
tuple
Alias for field number 0
Alias for field number 1
Simple tag
Returns: list of non-empty categories ordered by post count in desc. order
Simple tag
Get the lists of the latest posts (general of featured) for the blog sidebar
Parameters: - featured – if
True
featured posts digest is returned - posts_count – the number of posts to include in a digest
Returns: the digest of recent posts and “More” link
Return type: - featured – if
Simple tag
Parameters: months_count – the number of month to include in a digest Returns: the list of the most recent months from the blog archive for the blog sidebar Return type: SideBarObjects
Simple tag
Returns: blog menu links for the site main menu.
Inclusion tag
Renders paginator for multi-page lists.
A skin must provide the respective paginator template.
Adds pagination context variables for use in displaying first, adjacent and last page links in addition to those created by the object_list generic view.
Parameters: - context – parent template context
- adjacent_pages – the number of pages adjacent to the current
Returns: rendered paginator html code
Check if a current URL belong to blog application
Parameters: context (dict) – template context Returns: check result Return type: bool