Blogg.se object reference

Entry object

{{ entry }}

The entry object contains all data regarding a specifik entry. All available properties of the entry objects are:

id
A unique identifier for each entry.
title
Entry title.
excerpt
A shortened version of body, in plaintext (all HTML tags removed).
body
Body content of entry. Contains HTML tags.
images
A list of all images in the entry. Only images uploaded to blogg.se will be added to this list, external images are not recognized.
best_image
URL to the best image in this entry. Various parameters determine which image is considered "best", such as width and height, aspect ratio and camera information.
slug
The slug part of the URL that is used to create the permalink.
permalink
URL to blog entry, using relative path from blog root.
date
Date when entry was published, in format YY-MM-DD.
time
Time when entry was published, in format HH:MM:SS.
datetime
Published date and time as a date object.
rfc2822
Date and time when entry was published, in rfc2822 format.
iso8601
Date and time when entry was published, in iso8601 format.
comment_enabled
Boolean indicating whether comments are allowed for this entry or not.
comment_count
Integer containing the number of published comments for the entry.
comment_url
Url to entrypage, scrolled to the comment form.
category_name
Deprecated! Do not use! Name of category for this entry.
category_link
Deprecated! Do not use! URL to category page for this entry's category.
categories
List containing all categories for this entry. Each category is an object as follows:
  {"name": name of category, "link": URL to category page}
tags
List containing all tags for this entry.
Blog object

{{ blog }}

The blog object contains metadata regarding the blog. All available properties of the entry objects are:

id
A unique identifier for each entry.
title
Blog title.
description
Description of blog as entered in blog settings.
uri
Webadress to blog, excluding protocol (http://).
url
Webadress to blog, including protocol (http://).
full_content_in_feed
Boolean set to True or False, depending on blog setting.
blog_path
Path to blog, if a subblog. Otherwise nothing.
avatar
Small version of blogowner avatar (60 pixels).
large_avatar
Large version av blogowner avatar (125 pixels).
Comment object

{% for comment in comments %} {{ comment }} {% endfor %}

The comment object are only present on Entry pages. The comments keyword are a list containing all comment objects for current entry.
All available properties of the comment objects are:

id
A unique identifier for each comment.
name
Name of poster. If not set, "anonymous" will be used.
date
Date when comment was posted, in format YY-MM-DD.
time
Time when comment was posted, in format HH:MM:SS.
url
URL to poster adress, empty if not present.
id
A unique identifier for each comment.
rfc2822
Date and time when comment was posted, in rfc2822 format.
body
Comment body.
raw_body
Comment body, excluding answer from blog owner.
datetime
Posted date and time as a date object.
answer
Answer body, if comment has been answered by blog owner.
avatar
URL to avatar of comment poster.
Archive months

{% for month in archive_months %} {{ month }} {% endfor %}

To allow for complete archive link rendering on blogs, a list of all months containing blog entries for current blog is present for easy use on all pages. The archive_months keyword are a list containing all month objects for current blog.
Available properties of the month objects are:

year
Integer Year of this month representation.
month
Integer Month of this month representation.
name
String representation of this month in format Monthname Year.
link
URL to archive page for current month.

Kommentera


© Blogg Esse AB 2013