Change Images
Learn how to change images, including the site logo, the favicon, cover images, post images, author images, and general Markdown images in Try-O-Theme.
Understanding Image Locations
Different types of images in Try-O-Theme are stored in different directories:
- Site Logo: Located in src/contents/assets/images/logos/, controls the main site logo (logo.png) and dark mode logo (logo~dark.png).
- Post Images: Stored in src/contents/post-name/assets/, includes cover images (cover.jpg, .png, .webp) and inline images.
- Author Images: Found in src/contents/authors/author-name/assets/, used for author profile pictures (author.jpg).
- General Markdown Images: Can be stored inside any assets/ directory within posts, pages, or other content. Used for embedding images inside Markdown files.
Changing the Site Logo
- Navigate to the logo directory:
cd src/contents/assets/images/logos/
- Replace the logo.png and logo~dark.png files with your custom images.
- logo.png → Used in light mode.
- logo~dark.png → Used in dark mode.
- Ensure your new logos have the same file names as the originals.
- Regenerate & preview the site:
toucan generate toucan serve
Changing the Favicon
Favicons are the small icons that appear in browser tabs and bookmarks. To update the favicon in Try-O-Theme:
- Navigate to the favicon directory:
cd src/contents/assets/icons/
- Replace the existing favicon files with your own. Recommended formats:
• favicon.ico (main file used by most browsers)
• Optional additional sizes: favicon.png, etc. - Ensure the filenames match the ones currently used, or update references in the site head if you’re using custom names.
- Regenerate & preview the site:
toucan generate toucan serve
Changing Post Images (Cover & Inline Images)
- Go to the post directory where you want to add/change images:
cd src/contents/my-post/assets/
- Replace or add images:
- Cover image: Name the file cover.jpg (or .png, .webp). If there is a cover.* image in the assets folder, Toucan will automatically use it as the post’s cover image, and it will be displayed in the lists.
- Inline images: Save them in the assets/ folder.
- Reference images inside the post:

- Regenerate & preview the site:
toucan generate toucan serve
Changing Author Images
- Navigate to the author’s directory:
cd src/contents/authors/author-name/assets/
- Replace the profile image (e.g., author.jpg).
- Update the author’s index.md file:
image: ./assets/author.jpg
- Regenerate & preview the site:
toucan generate toucan serve
Adding Images in Markdown Files (General Usage)
Markdown allows you to embed images directly within your content. You can add images using the following syntax:
- Local Images (Stored in the project)If your image is inside the assets folder within your content directory, reference it as follows:

- Remote Images (External Links)If you want to add an image hosted online, use:

Troubleshooting Common Image Issues
1. Image Not Updating?
✔️ Solution: Clear your browser cache and refresh (Ctrl + Shift + R).
2. Image Not Loading?
✔️ Solution: Double-check file paths and ensure images are inside the correct assets/ folder.
3. Dark Mode Logo Not Changing?
✔️ Solution: Make sure logo~dark.png is updated correctly.
Final Steps
- Always replace images with the same file names if you want changes to apply instantly.
- Use high-quality
.png
or.webp
files for best performance. - Regenerate the site (
toucan generate
) after making changes.
This guide ensures you can easily update any image in Try-O-Theme! 🚀