|Charles Reid 34abf815f5 update link to rmm||5 months ago|
|pelican||5 months ago|
|.gitignore||6 months ago|
|README.md||6 months ago|
This is a simple single-page static landing page for
The pages subdomain consists of repositories
with a pages webhook - that is, a webhook
that will deploy the
of that repository as a page at
This utilizes a webhook listener (see b-captain-hook) to listen for commits to particular repositories. While not as streamlined as Github Pages (i.e., you still have to manually add a webhook to each repo you want to build a site for), it provides a convenient, self-hosted alternative to Github Pages.
This page uses a single-page Pelican theme to generate static content.
Below, we cover:
To install Pelican:
pip install Markdown pip install pelican
To make the Pelican site:
pelican content cd output/ python -m http.server 8080
localhost:8080 in your browser.
The single-site template utilizes variables defined in
to customize the page content, so there is no content to edit in
Start by cloning a copy of the repo at output (a repo within a repo):
git clone https://git.charlesreid1.com/charlesreid1/hooks.charlesreid1.com output/ cd output/ git checkout --orphan gh-pages cd ../
Now make the content, which will put the resulting pages into
and commit the new version of the site to the
pelican content cd output/ git add -A . git commit -a -m 'Add new version of site' git push origin gh-pages