Full URL: https://sadielbartholomew.github.io/
Designed & created by Sadie Louise Bartholomew, 2020+.
- GitHub Pages;
- HTML;
- CSS;
- YAML;
- Jinja(2);
- EnlighterJS.
-
The content structure is defined in HTML templates under
templates/
. These are Jinja2 templates for HTML i.e. pure HTML templates except from lower-level elements in the document object model which are often Jinja2 expressions, functions or variables for which pre-defined content will be injected to give final, pure, HTML files defining the user-facing site. -
The site design, i.e. the design mapping to the HTML templates, is stored under
css/
. -
The content is located as follows:
- written content is stored in YAML files directly under
content/
; - media is stored in an organised heirarchical structure under
img/
.
- written content is stored in YAML files directly under
The command, executed from the root respoitory directory:
$ python rebuild-site.py
will rebuild the website to pick up on any changes made in the templates/
,
content/
, img/
& css/
directories to produce the final, user-facing
HTML files which are written directly to the root repository directory.
The command calls the Python script rebuild-site.py
which:
- maps the content files to template files;
- processes the template files;
- uses Jinja2 to inject the YAML key-values from each content file into the corresponding key elements in the HTML templates;
- writes the populated HTML to the root repository directory.
Changes to the code should be built into the final pages via the rebuild
command & then the full state of the repository committed to the master
branch. The changes will then (possibly after a short-ish delay for GitHub to
process them) display at the site domain, sadielbartholomew.github.io
,
as a GitHub Pages website.