- 1 Jinja2 Base Template Variables
- 2 Classes Used in base.html
- 3 Classes again
This document describes the variables used in the Jinja2 base template used by the static site generator.
- The root URL of the site.
- The title of the page.
- The URL of the site.
- The name of the site.
- The subtitle of the site.
- The copyright information for the site.
- The directory where the static assets for the theme are located.
- The name of the CSS file for the theme.
- The URL of the RSS feed for the entire site.
- A list of (title, link) tuples representing the current page's breadcrumb trail.
- The URL of the RSS feed for the current page.
- A list of dictionaries representing the pages in the site. Each dictionary has two keys: 'title' (the page title) and 'url' (the URL of the page).
- A dictionary representing the current page. It has two keys: 'title' (the page title) and 'url' (the URL of the page).
- A list of the tags used in the site.
- A list of the tags for the current page.
- A list of (name, link) tuples representing the sites in the blogroll.
The SiteHead class is applied to the header element of the HTML page. It is used to encapsulate the top part of the website, including the site title, navigation menu, and other elements that are part of the header.
The SiteTitle class is used to style the site title, which is displayed at the top of the website. It is often used in conjunction with the SiteHead class to style the header.
The SiteSubtitle class is used to style the subtitle of the website, which is displayed beneath the site title. It is often used in conjunction with the SiteTitle class to create a consistent and visually appealing header.
The blogroll class is used to style the blogroll section of the website. It is often used to create a list of links to other blogs or websites that are related to the content of the site.
The blogroll right class is a specific instance of the blogroll class that is used to align the "top" link to the right side of the blogroll section.
The content class is used to style the main content area of the website. It is often used to encapsulate the main body of the page, including text, images, and other media.
This class represents the top section of the website, which includes the site title and navigation links. It contains the following elements:
The title of the site, which is displayed at the top of the page.
An optional subtitle for the site, which appears below the title.
The breadcrumb links that show the user's current location on the site.
The links to different pages on the site.