Asketic Aligator
Druhá iterace stránek ve vývoji
doc: base.html
2023.04.08 20:46:56 doc chatGPT Gilhad chatGPT

cobra base.html


1   Jinja2 Base Template Variables

This document describes the variables used in the Jinja2 base template used by the static site generator.

root
The root URL of the site.
title
The title of the page.
SITE_URL
The URL of the site.
SITE_NAME
The name of the site.
SITE_SUBTITLE
The subtitle of the site.
COPYRIGHT
The copyright information for the site.
THEME_STATIC_DIR
The directory where the static assets for the theme are located.
CSS_FILE
The name of the CSS file for the theme.
FEED_ALL_RSS
The URL of the RSS feed for the entire site.
paths
A list of (title, link) tuples representing the current page's breadcrumb trail.
FEED_RSS
The URL of the RSS feed for the current page.
pages
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).
page
A dictionary representing the current page. It has two keys: 'title' (the page title) and 'url' (the URL of the page).
tags
A list of the tags used in the site.
actual_tags
A list of the tags for the current page.
blogroll
A list of (name, link) tuples representing the sites in the blogroll.

2   Classes Used in base.html

2.2   blogroll

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.

2.2.1   blogroll right

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.

2.3   content

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.

3   Classes again

3.1   SiteHead

This class represents the top section of the website, which includes the site title and navigation links. It contains the following elements:

3.1.1   SiteTitle

The title of the site, which is displayed at the top of the page.

3.1.2   SiteSubtitle

An optional subtitle for the site, which appears below the title.

3.1.4   breadcumbs

The breadcrumb links that show the user's current location on the site.

3.1.5   pages

The links to different pages on the site.

3.1.6   tags

The links to different tags used on the site.

3.2   blogroll

This class represents a list of links to external blogs or websites related to the content on the site. It contains the following elements:

3.2.1   name

The name of the blog or website.