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
Deprecate social networking links in `_config.yml` in favor or new `author.links` array for any link and in any order. All of Font Awesome's icons are available for use.
```
author:
links:
- label: "Your Website"
icon: "fas fa-fw fa-link"
url: "https://your-site.com"
- label: "Twitter"
icon: "fab fa-fw fa-twitter-square"
url: "https://twitter.com/username"
- label: "GitHub"
icon: "fab fa-fw fa-github"
url: "https://github.com/username"
- label: "Instagram"
icon: "fab fa-fw fa-instagram"
url: "https://instagram.com/username"
```
Fixesmmistakes#1581
Copy file name to clipboardexpand all lines: docs/_docs/05-configuration.md
+33-8
Original file line number
Diff line number
Diff line change
@@ -731,17 +731,42 @@ Used as the defaults for defining what appears in the author sidebar.
731
731
732
732
```yaml
733
733
author:
734
-
name : "Your Name"
735
-
avatar : "/assets/images/bio-photo.jpg"
736
-
bio : "My awesome biography constrained to a sentence or two goes here."
737
-
email : # optional
738
-
uri : "http://your-site.com"
739
-
home : # null (default), "absolute or relative url to link to author home"
734
+
name : "Your Name"
735
+
avatar : "/assets/images/bio-photo.jpg"
736
+
bio : "My awesome biography constrained to a sentence or two goes here."
737
+
location : "Somewhere, USA"
740
738
```
741
739
742
-
Social media links are all optional, include the ones you want visible. In most cases you just need to add the username. If you're unsure double check `_includes/author-profile.html` to see how the URL is constructed.
740
+
Author links are all optional, include the ones you want visible under the `author.links` array.
743
741
744
-
To add social media links not included with the theme or customize the author sidebar further, read the full [layout documentation]({{ "/docs/layouts/#author-profile" | relative_url }}).
Copy file name to clipboardexpand all lines: docs/_docs/09-authors.md
+25-13
Original file line number
Diff line number
Diff line change
@@ -2,32 +2,44 @@
2
2
title: "Authors"
3
3
permalink: /docs/authors/
4
4
excerpt: "Instructions and settings for working with multiple site authors."
5
-
last_modified_at: 2016-11-03T10:55:15-04:00
5
+
last_modified_at: 2018-09-10T12:33:24-04:00
6
6
---
7
7
8
8
Sites that may have content authored from various individuals can be accommodated by using [data files](https://jekyllrb.com/docs/datafiles/).
9
9
10
10
To assign an author to a post or page that is different from the site author specified in `_config.yml`:
11
11
12
-
**Step 1.** Create `_data/authors.yml` and add authors using the following format. Any variables found under `author:` in `_config.yml` can be used (e.g. `name`, `avatar`, `uri`, social media profiles, etc.).
12
+
**Step 1.** Create `_data/authors.yml` and add authors using the following format. Any variables found under `author:` in `_config.yml` can be used (e.g. `name`, `bio`, `avatar`, author `links`, etc.).
13
13
14
14
```yaml
15
15
# /_data/authors.yml
16
16
17
17
Billy Rick:
18
-
name: "Billy Rick"
19
-
uri: "http://thewhip.com"
20
-
email: "billy@rick.com"
21
-
bio: "What do you want, jewels? I am a very extravagant man."
22
-
avatar: "/assets/images/bio-photo-2.jpg"
23
-
twitter: "extravagantman"
18
+
name : "Billy Rick"
19
+
bio : "What do you want, jewels? I am a very extravagant man."
20
+
avatar : "/assets/images/bio-photo-2.jpg"
21
+
links:
22
+
- label: "Email"
23
+
icon: "fas fa-fw fa-envelope-square"
24
+
url: "mailto:billyrick@rick.com"
25
+
- label: "Website"
26
+
icon: "fas fa-fw fa-link"
27
+
url: "https://thewhip.com"
28
+
- label: "Twitter"
29
+
icon: "fab fa-fw fa-twitter-square"
30
+
url: "https://twitter.com/extravagantman"
24
31
25
32
Cornelius Fiddlebone:
26
-
name: "Cornelius Fiddlebone"
27
-
email: "cornelius@thewhip.com"
28
-
bio: "I ordered what?"
29
-
avatar: "/assets/images/bio-photo.jpg"
30
-
twitter: "rhymeswithsackit"
33
+
name : "Cornelius Fiddlebone"
34
+
bio : "I ordered what?"
35
+
avatar : "/assets/images/bio-photo.jpg"
36
+
links:
37
+
- label: "Email"
38
+
icon: "fas fa-fw fa-envelope-square"
39
+
url: "mailto:cornelius@thewhip.com"
40
+
- label: "Twitter"
41
+
icon: "fab fa-fw fa-twitter-square"
42
+
url: "https://twitter.com/rhymeswithsackit"
31
43
```
32
44
33
45
**Step 2.** Assign one of the authors in `authors.yml` to a post or page you wish to override the `site.author` with.
Copy file name to clipboardexpand all lines: docs/_docs/10-layouts.md
+24-62
Original file line number
Diff line number
Diff line change
@@ -525,68 +525,36 @@ defaults:
525
525
**Note:** To disable the author sidebar profile for a specific post or page, add `author_profile: false` to the YAML Front Matter instead.
526
526
{: .notice--warning}
527
527
528
-
The theme comes pre-built with a selection of links for the most common social media networks. These are all optional and can be [assigned in `_config.yml`]({{ "/docs/configuration/" | relative_url }}).
528
+
To assign more author links, add to the `author.links` array in [`_config.yml`]({{ "/docs/configuration/" | relative_url }}) link so. Any of [Font Awesome's icons](https://fontawesome.com/icons?d=gallery) are available for use.
529
529
530
-
To add more links you'll need to crack open [`_includes/author-profile-custom-links.html`](https://github.com/mmistakes/minimal-mistakes/blob/master/_includes/author-profile-custom-links.html) and add the appropriate `<li>` markup shown below.
531
-
532
-
**Please note:** Links added here will appear after the ones in [`_includes/author-profile.html`](https://github.com/mmistakes/minimal-mistakes/blob/master/_includes/author-profile.html). If you'd like to change the order of appearance you'll need to edit that file directly.
530
+
```yaml
531
+
author:
532
+
name: "Your Name"
533
+
avatar: "/assets/images/bio-photo.jpg"
534
+
bio: "I am an amazing person."
535
+
location: "Somewhere"
536
+
links:
537
+
- label: "Made Mistakes"
538
+
icon: "fas fa-fw fa-link"
539
+
url: "https://mademistakes.com"
540
+
- label: "Twitter"
541
+
icon: "fab fa-fw fa-twitter-square"
542
+
url: "https://twitter.com/mmistakes"
543
+
- label: "GitHub"
544
+
icon: "fab fa-fw fa-github"
545
+
url: "https://github.com/mmistakes"
546
+
- label: "Instagram"
547
+
icon: "fab fa-fw fa-instagram"
548
+
url: "https://instagram.com/mmistakes"
549
+
```
550
+
551
+
**Note:** Depending on the icon and theme skin used, colors may not be used. Popular social networks like Twitter, Facebook, Instagram, Google+, etc. have the appropriate brand color set in CSS. To change or add missing colors edit [`_utilities.scss`](https://github.com/mmistakes/minimal-mistakes/blob/master/_sass/minimal-mistakes/_utilities.scss) in `<site root>/_sass/minimal-mistakes/`.
It's up to you if you want to wrap it in a `{% raw %}{% if %} ... {% endif %}{% endraw %}`conditional and add a variable to `_config.yml`. If you don't plan to change it then hard-coding the string is perfectly acceptable.
552
-
553
-
Let's run through how you'd add a new link that points to a Reddit profile. Starting with the three things from above:

580
-
581
-
To add a touch of color to the default black (`#000`) icon a few more steps are necessary.
582
-
583
-
Start by copying [`_utilities.scss`](https://github.com/mmistakes/minimal-mistakes/blob/master/_sass/minimal-mistakes/_utilities.scss) `<site root>/_sass`. Open it up to the icon section (it's near the bottom) and nest a new class beneath `.social-icons` that matches the one used to declare the Font Awesome icon. In our case `.fa-reddit`.
584
-
585
-
Simply add a `color` declaration and the corresponding hex code.
554
+
For example, to color a Reddit icon, simply add a `color` declaration and the corresponding hex code like so:
586
555
587
556
```scss
588
557
.social-icons {
589
-
590
558
.fa-reddit {
591
559
color: #ff4500;
592
560
}
@@ -595,12 +563,6 @@ Simply add a `color` declaration and the corresponding hex code.
595
563
596
564

597
565
598
-
**ProTip:** For bonus points you can add it as a Sass `$variable` that you set in [`_variables.scss`](https://github.com/mmistakes/minimal-mistakes/blob/master/_sass/minimal-mistakes/_variables.scss) like the other ["brand" colors](http://brandcolors.net/). You'll need to add this file to `/_sass/` as well if you're using the Ruby Gem version of the theme.
599
-
{: .notice--info}
600
-
601
-
**Please please please** don't submit [pull requests]({{ "/docs/contributing/" | relative_url }}) adding in support for "missing" social media links. I'm trying to keep things down to the minimum (hence the theme's name) and have no interest in merging such PRs :expressionless:.
602
-
{: .notice--warning}
603
-
604
566
### Custom Sidebar Content
605
567
606
568
Blocks of content can be added by using the following under `sidebar`:
Copy file name to clipboardexpand all lines: docs/_posts/2012-03-15-layout-author-override.md
+25-12
Original file line number
Diff line number
Diff line change
@@ -2,31 +2,44 @@
2
2
title: "Layout: Author Override"
3
3
author: Billy Rick
4
4
excerpt: "A post to test author overrides using a data file."
5
+
last_modified_at: 2018-09-10T12:32:27-04:00
5
6
---
6
7
7
8
Sites that may have content authored from various individuals can be accommodated by using [data files](https://jekyllrb.com/docs/datafiles/).
8
9
9
10
To attribute an author to a post or page that is different from the site author specified in `_config.yml`:
10
11
11
-
**Step 1.** Create `_data/authors.yml` and add authors using the following format. Anything variables found under `author` in `_config.yml` can be used (e.g. `name`, `avatar`, `uri`, social media profiles, etc.).
12
+
**Step 1.** Create `_data/authors.yml` and add authors using the following format. Anything variables found under `author` in `_config.yml` can be used (e.g. `name`, `bio`, `avatar`, author `links`, etc.).
12
13
13
14
```yaml
14
15
# /_data/authors.yml
15
16
16
17
Billy Rick:
17
-
name: "Billy Rick"
18
-
uri: "http://thewhip.com"
19
-
email: "billy@rick.com"
20
-
bio: "What do you want, jewels? I am a very extravagant man."
21
-
avatar: "/assets/images/bio-photo-2.jpg"
22
-
twitter: "extravagantman"
18
+
name : "Billy Rick"
19
+
bio : "What do you want, jewels? I am a very extravagant man."
20
+
avatar : "/assets/images/bio-photo-2.jpg"
21
+
links:
22
+
- label: "Email"
23
+
icon: "fas fa-fw fa-envelope-square"
24
+
url: "mailto:billyrick@rick.com"
25
+
- label: "Website"
26
+
icon: "fas fa-fw fa-link"
27
+
url: "https://thewhip.com"
28
+
- label: "Twitter"
29
+
icon: "fab fa-fw fa-twitter-square"
30
+
url: "https://twitter.com/extravagantman"
23
31
24
32
Cornelius Fiddlebone:
25
-
name: "Cornelius Fiddlebone"
26
-
email: "cornelius@thewhip.com"
27
-
bio: "I ordered what?"
28
-
avatar: "/assets/images/bio-photo.jpg"
29
-
twitter: "rhymeswithsackit"
33
+
name : "Cornelius Fiddlebone"
34
+
bio : "I ordered what?"
35
+
avatar : "/assets/images/bio-photo.jpg"
36
+
links:
37
+
- label: "Email"
38
+
icon: "fas fa-fw fa-envelope-square"
39
+
url: "mailto:cornelius@thewhip.com"
40
+
- label: "Twitter"
41
+
icon: "fab fa-fw fa-twitter-square"
42
+
url: "https://twitter.com/rhymeswithsackit"
30
43
```
31
44
32
45
**Step 2.** Assign one of the authors in `authors.yml` to a post or page you wish to override the `site.author` with.
Copy file name to clipboardexpand all lines: test/_posts/2012-03-15-layout-author-override.md
+24-12
Original file line number
Diff line number
Diff line change
@@ -8,25 +8,37 @@ Sites that may have content authored from various individuals can be accommodate
8
8
9
9
To attribute an author to a post or page that is different from the site author specified in `_config.yml`:
10
10
11
-
**Step 1.** Create `_data/authors.yml` and add authors using the following format. Anything variables found under `author` in `_config.yml` can be used (e.g. `name`, `avatar`, `uri`, social media profiles, etc.).
11
+
**Step 1.** Create `_data/authors.yml` and add authors using the following format. Anything variables found under `author` in `_config.yml` can be used (e.g. `name`, `bio`, `avatar`, author `links`, etc.).
12
12
13
13
```yaml
14
14
# /_data/authors.yml
15
15
16
16
Billy Rick:
17
-
name: "Billy Rick"
18
-
uri: "http://thewhip.com"
19
-
email: "billy@rick.com"
20
-
bio: "What do you want, jewels? I am a very extravagant man."
21
-
avatar: "/assets/images/bio-photo-2.jpg"
22
-
twitter: "extravagantman"
17
+
name : "Billy Rick"
18
+
bio : "What do you want, jewels? I am a very extravagant man."
19
+
avatar : "/assets/images/bio-photo-2.jpg"
20
+
links:
21
+
- label: "Email"
22
+
icon: "fas fa-fw fa-envelope-square"
23
+
url: "mailto:billyrick@rick.com"
24
+
- label: "Website"
25
+
icon: "fas fa-fw fa-link"
26
+
url: "https://thewhip.com"
27
+
- label: "Twitter"
28
+
icon: "fab fa-fw fa-twitter-square"
29
+
url: "https://twitter.com/extravagantman"
23
30
24
31
Cornelius Fiddlebone:
25
-
name: "Cornelius Fiddlebone"
26
-
email: "cornelius@thewhip.com"
27
-
bio: "I ordered what?"
28
-
avatar: "/assets/images/bio-photo.jpg"
29
-
twitter: "rhymeswithsackit"
32
+
name : "Cornelius Fiddlebone"
33
+
bio : "I ordered what?"
34
+
avatar : "/assets/images/bio-photo.jpg"
35
+
links:
36
+
- label: "Email"
37
+
icon: "fas fa-fw fa-envelope-square"
38
+
url: "mailto:cornelius@thewhip.com"
39
+
- label: "Twitter"
40
+
icon: "fab fa-fw fa-twitter-square"
41
+
url: "https://twitter.com/rhymeswithsackit"
30
42
```
31
43
32
44
**Step 2.** Assign one of the authors in `authors.yml` to a post or page you wish to override the `site.author` with.
0 commit comments