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: userguide/content/en/docs/adding-content/iconsimages.md
+9-34
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
---
2
-
title: "Logos and Images"
3
-
linkTitle: "Logos and Images"
2
+
title: Logos and Images
4
3
date: 2017-01-05
5
4
weight: 6
6
-
description: >
7
-
Add and customize logos, icons, and images in your project.
5
+
description: Add and customize logos, icons, and images in your project.
8
6
---
9
7
10
8
## Add your logo
11
9
12
-
Add your project logo as `assets/icons/logo.svg` in your project. This overrides the default Docsy logo in the theme. If you don't want a project logo, set `navbar_logo` to `false` (or delete the variable) in your `config.toml`/`config.yaml`/`config.json`:
10
+
Place your project logo in `assets/icons/logo.svg`. This overrides the default
11
+
Docsy logo in the theme. If you don't want a project logo, set `navbar_logo` to
If you decide at a later stage that you'd like to add a logo to your navbar, you can set the parameter to `true`:
29
+
For information about styling your logo, see [Styling your brand logo and
30
+
name][]
30
31
31
-
{{< tabpane persistLang=false >}}
32
-
{{< tab header="config.toml" lang="toml" >}}
33
-
navbar_logo = true
34
-
{{< /tab >}}
35
-
{{< tab header="config.yaml" lang="yaml" >}}
36
-
navbar_logo: true
37
-
{{< /tab >}}
38
-
{{< tab header="config.json" lang="json" >}}
39
-
{
40
-
"navbar_logo": true
41
-
}
42
-
{{< /tab >}}
43
-
{{< /tabpane >}}
44
-
45
-
{{% alert title="Tip" %}}
46
-
Your logo is included in the default Docsy navbar as an inline SVG with the following CSS styling (from [`_nav.scss`](https://github.com/google/docsy/blob/main/assets/scss/_nav.scss)):
47
-
48
-
```
49
-
svg {
50
-
display: inline-block;
51
-
margin: 0 10px;
52
-
height: 30px;
53
-
}
54
-
```
55
-
56
-
To ensure your logo displays correctly, you may want to resize it, ensure it doesn't have height and width attributes so that its size is fully responsive, or override the default styling with your own CSS.
57
-
{{% /alert %}}
32
+
[Styling your brand logo and name]: /docs/adding-content/lookandfeel/#styling-your-brand-logo-and-name
58
33
59
34
## Add your favicons
60
35
@@ -70,7 +45,7 @@ If you have special favicon requirements, you can create your own `layouts/parti
70
45
71
46
Docsy's [`blocks/cover` shortcode](/docs/adding-content/shortcodes/#blockscover) make it easy to add large cover images to your landing pages. The shortcode looks for an image with the word "background" in the name inside the landing page's [Page Bundle](https://gohugo.io/content-management/page-bundles/) - so, for example, if you've copied the example site, the landing page image in `content/en/_index.html` is `content/en/featured-background.jpg`.
72
47
73
-
You specify the preferred display height of a cover block container (and hence its image) using the block's `height` parameter. For a full viewport height, use `full`:
48
+
You specify the preferred display height of a cover block container (and hence its image) using the block's `height` parameter. For a full viewport height, use `full`:
74
49
75
50
```html
76
51
{{</* blocks/cover title="Welcome to the Docsy Example Project!" image_anchor="top" height="full" color="orange" */>}}
Copy file name to clipboardexpand all lines: userguide/content/en/docs/adding-content/lookandfeel.md
+27
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ title: Look and Feel
3
3
date: 2017-01-05
4
4
weight: 2
5
5
description: Customize colors, fonts, code highlighting, and more for your site.
6
+
spelling: cSpell:ignore wordmark docsy
6
7
---
7
8
8
9
By default, a site using Docsy has the theme's default fonts, colors, and general look and feel. However, if you want your own color scheme (and you probably will!) you can very easily override the theme defaults with your own project-specific values - Hugo will look in your project files first when looking for information to build your site. And because Docsy uses Bootstrap 4 and SCSS for styling, you can override just single values (such as project colors and fonts) in its special SCSS project variables file, or do more serious customization by creating your own styles.
0 commit comments