Pelican that builds jordy248.github.io
jordynelson.io is hosted by GitHub Pages and powered by Pelican using a customized version of Theme Attila.
- Clone both jordy248 (which contains the Pelican generator) and jordy248.github.io (which contains the static site generated by Pelican):
git clone https://github.com/jordy248/jordy248.git
git clone https://github.com/jordy248/jordy248.github.io.git
- Install dependencies:
- Install npm dependencies:
npm i
- Install Python dependencies:
poetry install
- Install npm dependencies:
- In the
jordy248
directory, make any changes to the Pelican configuration file, theme files, or content- Compile the Sass:
sass themes/martian/static/css/sass/main.scss themes/martian/static/css/main.css
- Or using npm script:
npm run compile-sass
- Compile the Sass:
- In the
jordy248
directory, run Pelican to generate the site:pelican
- Optionally:
pelican /path/to/your/content/ [-s path/to/your/settings.py]
ifPATH
(which specifies path to directory containing content to be published) isn't specified in the settings.py/pelicanconf.py file - Optionally:
pelican --write-selected output/posts/my-post-title.html
to only publish certain content
- Optionally:
- Or using npm script:
npm run compile-pelican
- The content will be written to
./output
(or whereverOUTPUT_PATH
specifies in the settings.py/pelicanconf.py file) - Preview changes:
cd output
python -m http.server
- Or using npm script:
npm run-python-server
- Move the contents of
jordy248/output
tojordy248.github.io
and commit the changes to bothjordy248
andjordy248.github.io
- Using npm:
npm run copy-live
- Using npm: