File: site.md

package info (click to toggle)
staticsite 2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 14,648 kB
  • sloc: javascript: 33,722; python: 9,851; makefile: 46; sh: 4
file content (19 lines) | stat: -rw-r--r-- 732 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Site

The [site object](../staticsite/site.py) collects and tracks all contents of a
site.

Through it, templates and code can access:

* `settings`: the site [settings](settings.md)
* `pages`: the site pages, indexed by relative path in the built site
* `timezone`: timezone object for the default site timezone, used as a default
  for naive datetime objects
* `generation_time`: datetime of the current execution of staticsite
* `theme`: [Theme](theme.md) for the site
* `features`: site [features](feature.md) indexed by name
* `content_root`: path to the root directory of site [contents](contents.md)
* `site_name`: configured site name
* `archetypes`: site [archetypes](archetypes.md)

[Back to reference index](README.md)