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
Add logo and title customization to the masthead (mmistakes#2026)
* Add logo and title customization to the masthead
* Adjust config description
* Add test site logo to `/test`
* Document `site.logo` and `site.masthead_title`
* Update CHANGELOG and history
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
### Enhancements
4
4
5
+
- Add logo and title customization to the masthead. [#2026](https://github.com/mmistakes/minimal-mistakes/pull/2026)
5
6
- Add support to customize `issue-term` for utterances comment provider. [#2022](https://github.com/mmistakes/minimal-mistakes/pull/2022)
6
7
- Allow custom canonical url on a page-by-page basis. [#2021](https://github.com/mmistakes/minimal-mistakes/pull/2021)
7
8
- Update table of contents navigation based on scroll position to indicate which link is currently active in the viewport. [#2020](https://github.com/mmistakes/minimal-mistakes/pull/2020)
Copy file name to clipboardexpand all lines: docs/_docs/05-configuration.md
+22-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: "Configuration"
3
3
permalink: /docs/configuration/
4
4
excerpt: "Settings for configuring and customizing the theme."
5
-
last_modified_at: 2018-11-25T19:42:42-05:00
5
+
last_modified_at: 2019-01-15T08:31:44-05:00
6
6
toc: true
7
7
---
8
8
@@ -223,6 +223,27 @@ header:
223
223
<figcaption>Example of teaser images found in the related posts module.</figcaption>
224
224
</figure>
225
225
226
+
### Site masthead logo
227
+
228
+
To insert a logo before the site title, place a graphic in the `/assets/images/` directory and add the filename to `_config.yml`:
229
+
230
+
```yaml
231
+
logo: "/assets/images/88x88.png"
232
+
```
233
+
234
+
<figure>
235
+
<img src="{{ '/assets/images/mm-masthead-logo.png' | relative_url }}" alt="masthead with logo and custom title">
236
+
<figcaption>Example of masthead with logo and custom title.</figcaption>
237
+
</figure>
238
+
239
+
### Site masthead title
240
+
241
+
By default your site title is used in the masthead. You can override this text by adding the following to your `_config.yml`:
242
+
243
+
```yaml
244
+
masthead_title: "My Custom Title"
245
+
```
246
+
226
247
### Breadcrumb navigation (beta)
227
248
228
249
Enable breadcrumb links to help visitors better navigate deep sites. Because of the fragile method of implementing them they don't always produce accurate links reliably. For best results:
Copy file name to clipboardexpand all lines: docs/_docs/18-history.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,15 @@ permalink: /docs/history/
4
4
excerpt: "Change log of enhancements and bug fixes made to the theme."
5
5
sidebar:
6
6
nav: docs
7
-
last_modified_at: 2019-01-15T08:09:30-05:00
7
+
last_modified_at: 2019-01-15T08:32:58-05:00
8
8
toc: true
9
9
---
10
10
11
11
## Unreleased
12
12
13
13
### Enhancements
14
14
15
+
- Add logo and title customization to the masthead. [#2026](https://github.com/mmistakes/minimal-mistakes/pull/2026)
15
16
- Add support to customize `issue-term` for utterances comment provider. [#2022](https://github.com/mmistakes/minimal-mistakes/pull/2022)
16
17
- Allow custom canonical url on a page-by-page basis. [#2021](https://github.com/mmistakes/minimal-mistakes/pull/2021)
17
18
- Update table of contents navigation based on scroll position to indicate which link is currently active in the viewport. [#2020](https://github.com/mmistakes/minimal-mistakes/pull/2020)
0 commit comments