Source repository for my personal website.
Visit https://smcleod.net
Feel free to raise a PR or create an issue if you find any problems or have a suggestion.
After cloning, point git at the tracked hooks directory:
git config core.hooksPath .githooksThis activates a pre-commit hook that replaces smart quotes (‘ ’ “ ”), em-dashes (—) and en-dashes (–) with their plain ASCII equivalents in any staged markdown file. If a flagged file also has unstaged changes, the commit aborts so unstaged edits aren't pulled in.
See SHORTCODES.md.
To display images at 80% of the browser width (breaking out of the normal content width), use the wide-image shortcode:
{{< wide-image src="image.png" alt="Description" caption="Optional caption" >}}Parameters:
src(required): Path to the image filealt(optional): Alt text for accessibilitycaption(optional): Caption text displayed below the image
Legacy support: Images with ?c=wide or #wide URL parameters will still work for backwards compatibility.
- Copyright © 2024 Sam McLeod
- This project is open source and licensed under CC BY-SA 4.0