Customization¶
If you want to customize your weblog, take a look at the templates/ directory inside your weblog. There are two different templates, post.html and index.html. In the pure-blog theme both these templates extend the base.html template. The templates are written in Jinja2.
As the name suggests, the post.html template is used to generate the HTML for individual posts. It defines 5 “blocks”:
- meta
Metadata added to HTML head
- title
The title of the page
- css
Custom CSS used by the post
- javascript
Custom Javascript used by the post
- content
The actual HTML content of the post
You probably only need to change the last one.
The index.html template is used to generate the index page, as well as the paginated archives and tags pages, ie, any page that shows a list of posts. It defines the following blocks:
- meta
Metadata addade to the HTML head
- title
The title of the page
- navigation
Elements used to paginate the archives and the tags
- content
The actual HTML content of the posts
In the pure-blog theme the template shows only the summary of each post, and it shows the number of posts defined in the nefelibata.yaml file.