Apache Theme
The Apache Theme included here consists two types of html files.
- Page templates. There should be one template for each page type.
- HTML fragments. There are fragments for different common parts of an html file.
Page Templates
- base.html - there is only one page type.
Change the base page as necessary and add new page types as required.
HTML Fragments
These common parts of the html file are discussed in the order they are included in pages.
- meta.html - consists of OpenGraph meta tags for the website. Filled from pelicanconf.py.
- styles.html - consists of Apache feather Favicon tags, and Bootstrap and GitHub Markdown Stylesheets. See Web Developer.
- styles.css - consists of custom site CSS overrides. Edit as needed.
- menu.html - consists of site branding and the top menubar. Edit as needed.
- footer.html - consists of the page footer including trademarks, licensing, and copyright. Filled from pelicanconf.py.
- scripts.html - consists of Apachecon, JQuery, Bootstrap, and Popper javascript to be included on every page, loaded last. See Web Developer.
Each of the above files should be edited as needed for the deployed website.
Pelican Variables set in pelicanconf.py
SITENAME = u'Apache <pmc>'
SITEDOMAIN = '<pmc>.apache.org'
SITEURL = 'https://<pmc>.apache.org'
SITELOGO = 'https://<pmc>.apache.org/images/logo.png'
SITEDESC = u'<pmc desc>'
SITEREPOSITORY = 'https://github.com/apache/<pmc-site>/blob/<branch>/content/pages/'
TRADEMARKS = u'Apache, the Apache feather logo, and <pmc> are trademarks or registered trademarks'
CURRENTYEAR = date.today().year