Post

class ablog.blog.Post(blog, docname, info)

Bases: BlogPageMixin

Handle post metadata.

Attributes Summary

next

Next published post in chronological order.

prev

Previous published post in chronological order.

Methods Summary

to_html(pagename[, fulltext, drop_h1, img_url])

Return excerpt or fulltext as HTML after resolving references with respect to pagename.

Attributes Documentation

next

Next published post in chronological order.

prev

Previous published post in chronological order.

Methods Documentation

to_html(pagename, fulltext=False, drop_h1=True, img_url=False)

Return excerpt or fulltext as HTML after resolving references with respect to pagename.

By default, first <h1> tag is dropped from the output. More than one can be dropped by setting drop_h1 to the desired number of tags to be dropped.

img_url enables conversion of <img> source paths to fully qualified URLs based on blog_baseurl.

Comments

comments powered by Disqus