The main
branch contains:
- the raw website content (in Markdown)
- the website format (in Python, using Pelican)
The gh-pages
branch contains
- the generated website (in HTML)
The gh-pages
branch is then published to GitHub pages with a custom domain.
- Pull the
main
branch locally (unless you're editing in the browser mode)
git pull
- Make your edits, review locally
For seeing a demo version while editing:
pelican --listen --autoreload
https://mirekdlugosz.com/blog/2021/improving-pelican-website-development-loop/
- Commit changes and push raw website content changes and formatting to the remote
main
branch
git commit -a -m "description of my changes"
git push
- Generate the HTML content in the output directory
pelican content -o output -s pelicanconf.py
- Push generated website HTML to the
gh-pages
branch and then that branch to GitHub
ghp-import output -b gh-pages
git push origin gh-pages
More documentation can be found in the Pelican github pages docs
https://docs.getpelican.com/en/latest/quickstart.html
If your video URL is: https://www.youtube.com/embed/IBdQ2YPidnk
Then use the following:
<div class="youtube" align="center">
<iframe width="600" height="375" src="https://www.youtube.com/embed/IBdQ2YPidnk?cc_lang_pref=en&cc_load_policy=1" frameborder="0"></iframe>
</div>