Entretien des thèmes
Notes regarding selecting and tweaking pelican themes used with our sites.
- To be able to use/tweak pelican themes for my pelican projects I cloned the full collection of pelican themes to my local machine.
git clone --recursive https://github.com/getpelican/pelican-themes /home/ubuntu/pelican-themes
- I then replicated the tree to use as a basis for getting a diff to identify any changes that I made during the course of tweaking themes I use.
cp -r ${HOME}/pelican-themes ${HOME}/pelican-themes.orig
chmod -w --recursive ${HOME}/pelican-themes.orig # To make my orig write protected for reliable diffs later.
- Do this once in a while as we tweak themes we are using, so we can keep a record of our tweaks.
cd ${HOME}/pelican-themes
diff -Naru ../pelican-themes.orig . > ../pelican-themes.patch
Note:
-N --new-file treat absent files as empty-a --text treat all files as text-r --recursive recursively compare subdirectories-u -U --unified[=NUM] Output NUM lines of unified context (default 3)