- /
-
- Configuration /
- Site Logo - Configuration
Site Logo - Configuration
Optionally replace text link by logo image
2025-05-23
ITADS
Home link in primary navigation is the site title by default, but it can be a logo. To set your own logo, enter its relative or absolute URL into settings.json
. Maximum logo width is limited to primary navigation bounds. If needed, logo size is available via siteLogoMaxHeight
parameter.
{
"siteLogoUrl": "/assets/path/to/logo.svg",
"siteLogoMaxHeight": 100
}
siteLogoUrl
Empty string by default. If set, must be a source image input path or an absolute URL of the source image. It replaces the text link by an image link. Just like any other image on the project, the image file is processed by 11ty Image Plugin.siteLogoMaxHeight
Default is 60. An integer that represent an amount of pixels in height. Applies only ifsiteLogoUrl
is set. Allows to quickly adjust logo size.