Writing a blog post
This guide explains how to write up a blog post following a walkthrough. For information on suggesting topics or volunteering to teach, see CONTRIBUTING.
File Structure
Blog posts are written in Quarto Markdown and stored in the following locations:
- Blog posts:
posts/YYYY-MM-DD-title-of-walkthrough/index.qmd - Images:
posts/YYYY-MM-DD-title-of-walkthrough/images/ - Other assets:
posts/YYYY-MM-DD-title-of-walkthrough/asset-name/
Step-by-Step Guide
Create a new branch from
main:git checkout -b walkthrough/descriptive-nameCreate your post file in the
postsdirectory with the naming convention:YYYY-MM-DD-title-of-walkthrough/index.qmdExample:
2024-01-15-intro-to-docker/index.qmdAdd front matter at the top of your Markdown file:
index.qmd
--- title: "Introduction to Docker" date: 2024-01-15 date-modified: last-modified author: - Author Name - Coauthor Name categories: [ "Docker", "Containers", "Package management" ] ---Write your content using Markdown. Include:
- Brief introduction
- Step-by-step instructions
- Code examples
- Screenshots or diagrams (if applicable)
- Key takeaways
- Further resources
Add images to
posts/YYYY-MM-DD-title-of-walkthrough/images/and reference them:Add assets to ignore list if Quarto would try to render them:
If you include assets that Quarto might try to render (e.g., example Quarto projects, quarto page examples), add them to the ignore list in
_quarto.yml:_quarto.yml
project: type: website render: - "*.qmd" 1 - "!posts/2024-05-14-quarto-to-confluence/quarto-example*/" - "!posts/YYYY-MM-DD-your-post/assets-to-ignore/"- 1
-
Prefix folders with
!to exclude them. Wildcards (*) are supported.
Note: Most posts won’t need this step - only add if you encounter rendering issues.
Preview locally:
quarto preview # or `pixi run preview`quarto previewwill automatically open the rendered preview in your browser.Submit a Pull Request:
- Push your branch to GitHub
- Open a PR with a clear description
- Link to the related Issue (e.g., “Closes #42” in the PR description)
- Request review from team members
Address feedback and merge once approved.
Writing Tips
- Keep it concise and focused (~30 minute read)
- Use code blocks with syntax highlighting and code annotation
- Include practical examples
- Add links to relevant documentation
- Consider adding a “Prerequisites” section if needed
- See existing posts in the
posts/directory for examples and inspiration - Check the Quarto documentation for advanced formatting options