You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/configuration/branding/logo/_index.en.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,23 +22,23 @@ If you need to change this default behavior, create a new file `layouts/partials
22
22
23
23
## Change the Logo
24
24
25
-
{{% badge style="option" %}}Option{{% /badge %}} The theme displays a logo in the sidebar menu. By default, it automatically detects logo in your site's `assets/images/`.
25
+
{{% badge style="option" %}}Option{{% /badge %}} The theme displays a logo in the sidebar menu. By default, it automatically detects logos in your site's `assets/images/`.
26
26
27
27
### Auto-Detection
28
28
29
-
If you don't configure a logo explicitly, the theme automatically searches for a logo file at `/images/logo.<TYPE>` in the following order of preference:
29
+
If you don't configure a logo explicitly, the theme automatically searches for a logo file at `/assets/images/logo.<TYPE>` in the following order of preference:
30
30
31
31
-`logo.svg`
32
32
-`logo.webp`
33
33
-`logo.png`
34
34
-`logo.jpg` / `logo.jpeg`
35
35
-`logo.gif`
36
36
37
-
Place your logo in either `assets/images/` and the theme will find it automatically. If no logo is found, only {your site title](configuration/sidebar/headerfooter#title) will be shown.
37
+
If no logo is found, only {your site title](configuration/sidebar/headerfooter#title) will be shown.
38
38
39
39
The size of the logo will adapt automatically.
40
40
41
-
### Configuration
41
+
### Manual Configuration
42
42
43
43
You can explicitly configure a logo in your site's `params.toml`. This will override automatic detection:
44
44
@@ -57,7 +57,7 @@ logo = { src = ' ' } # No logo, only site title
57
57
You can control the layout direction of the logo and title:
58
58
59
59
{{< multiconfig file=hugo section=params >}}
60
-
logo = { src = '/images/logo.svg', direction = 'column' }
60
+
logo = { direction = 'column' }
61
61
{{< /multiconfig >}}
62
62
63
63
Valid values are:
@@ -94,7 +94,7 @@ themeVariant = [
94
94
95
95
### Coloring SVG logos
96
96
97
-
If you have a monochrome SVG logo and want to give it different colors depending on the used variant, it is mandatory to give it the `inlinecontent`[image effect](authoring/linking/imageeffects). This is not set in the automatic logo detection:
97
+
If you have a monochrome SVG logo and want to display it in the variants color for the logo text, it is mandatory to give it the `inlinecontent`[image effect](authoring/linking/imageeffects). This is not set in the automatic logo detection. The recoloring applies to all black elements in your SVG:
0 commit comments