Assets and Branding
Replace the site logo, dark logo, favicon, and sharing image.
Mordoc uses two places for image files:
config/assets/
public/They have different jobs. Use config/assets/ for the site chrome, such as logos. Use public/ for images and files used by your content pages.
Understand config assets
Site branding files live in:
config/assets/The starter project includes:
config/assets/
├── logo.svg
└── logo-dark.svgThese files are used by the site interface, not by a specific Markdown page.
Replace the logo
To replace the light-mode logo, replace:
config/assets/logo.svgKeep the filename as logo and use a supported image file type.
For example:
config/assets/logo.svgSupported image file types include SVG, PNG, JPG, and JPEG.
Replace the dark logo
If your logo needs a different version on dark backgrounds, add or replace:
config/assets/logo-dark.svgThe dark logo should match the light logo in size and shape as closely as possible. That helps the header feel stable when the theme changes.
Add a favicon
A favicon is the small icon browsers show in tabs and bookmarks.
Add it here:
config/assets/favicon.icoYou can skip this while drafting your documentation. Add it before publishing if your site should use a branded browser icon.
Use public for content files
Do not put screenshots, diagrams, downloads, or other content files in config/assets/.
Those files belong in public/. See Images and Files for the full walkthrough.
Set a sharing image
The starter project includes a sharing image:
public/images/ring-og.svgYou can point to a sharing image from config/site.json:
{
"metadata": {
"ogImage": "/images/ring-og.svg"
}
}Because the file is inside public/, the path starts with / and does not include public.