forked from mmistakes/minimal-mistakes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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" ``` Fixes mmistakes#1581
- Loading branch information
Showing
10 changed files
with
201 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,31 +105,25 @@ author: | |
bio : "I am an amazing person." | ||
location : "Somewhere" | ||
email : | ||
uri : | ||
home : # null (default), "absolute or relative url to link to author home" | ||
bitbucket : | ||
codepen : | ||
dribbble : | ||
flickr : | ||
facebook : | ||
foursquare : | ||
github : | ||
gitlab : | ||
google_plus : | ||
keybase : | ||
instagram : | ||
lastfm : | ||
linkedin : # "john-doe-12345678" (the last part of your profile url, e.g. https://www.linkedin.com/in/john-doe-12345678) | ||
pinterest : | ||
soundcloud : | ||
stackoverflow : # "123456/username" (the last part of your profile url, e.g. https://stackoverflow.com/users/123456/username) | ||
steam : # "steamId" (the last part of your profile url, e.g. https://steamcommunity.com/id/steamId/) | ||
tumblr : | ||
twitter : | ||
vine : | ||
weibo : | ||
xing : | ||
youtube : # "https://youtube.com/c/MichaelRoseDesign" | ||
links: | ||
- label: "Email" | ||
icon: "fas fa-fw fa-envelope-square" | ||
# url: mailto:[email protected] | ||
- label: "Website" | ||
icon: "fas fa-fw fa-link" | ||
# url: "https://your-website.com" | ||
- label: "Twitter" | ||
icon: "fab fa-fw fa-twitter-square" | ||
# url: "https://twitter.com/" | ||
- label: "Facebook" | ||
icon: "fab fa-fw fa-facebook-square" | ||
# url: "https://facebook.com/" | ||
- label: "GitHub" | ||
icon: "fab fa-fw fa-github" | ||
# url: "https://github.com/" | ||
- label: "Instagram" | ||
icon: "fab fa-fw fa-instagram" | ||
# url: "https://instagram.com/" | ||
|
||
|
||
# Reading Files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,32 +2,44 @@ | |
title: "Authors" | ||
permalink: /docs/authors/ | ||
excerpt: "Instructions and settings for working with multiple site authors." | ||
last_modified_at: 2016-11-03T10:55:15-04:00 | ||
last_modified_at: 2018-09-10T12:33:24-04:00 | ||
--- | ||
|
||
Sites that may have content authored from various individuals can be accommodated by using [data files](https://jekyllrb.com/docs/datafiles/). | ||
|
||
To assign an author to a post or page that is different from the site author specified in `_config.yml`: | ||
|
||
**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.). | ||
**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.). | ||
|
||
```yaml | ||
# /_data/authors.yml | ||
|
||
Billy Rick: | ||
name: "Billy Rick" | ||
uri: "http://thewhip.com" | ||
email: "[email protected]" | ||
bio: "What do you want, jewels? I am a very extravagant man." | ||
avatar: "/assets/images/bio-photo-2.jpg" | ||
twitter: "extravagantman" | ||
name : "Billy Rick" | ||
bio : "What do you want, jewels? I am a very extravagant man." | ||
avatar : "/assets/images/bio-photo-2.jpg" | ||
links: | ||
- label: "Email" | ||
icon: "fas fa-fw fa-envelope-square" | ||
url: "mailto:[email protected]" | ||
- label: "Website" | ||
icon: "fas fa-fw fa-link" | ||
url: "https://thewhip.com" | ||
- label: "Twitter" | ||
icon: "fab fa-fw fa-twitter-square" | ||
url: "https://twitter.com/extravagantman" | ||
|
||
Cornelius Fiddlebone: | ||
name: "Cornelius Fiddlebone" | ||
email: "[email protected]" | ||
bio: "I ordered what?" | ||
avatar: "/assets/images/bio-photo.jpg" | ||
twitter: "rhymeswithsackit" | ||
name : "Cornelius Fiddlebone" | ||
bio : "I ordered what?" | ||
avatar : "/assets/images/bio-photo.jpg" | ||
links: | ||
- label: "Email" | ||
icon: "fas fa-fw fa-envelope-square" | ||
url: "mailto:[email protected]" | ||
- label: "Twitter" | ||
icon: "fab fa-fw fa-twitter-square" | ||
url: "https://twitter.com/rhymeswithsackit" | ||
``` | ||
**Step 2.** Assign one of the authors in `authors.yml` to a post or page you wish to override the `site.author` with. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,31 +2,44 @@ | |
title: "Layout: Author Override" | ||
author: Billy Rick | ||
excerpt: "A post to test author overrides using a data file." | ||
last_modified_at: 2018-09-10T12:32:27-04:00 | ||
--- | ||
|
||
Sites that may have content authored from various individuals can be accommodated by using [data files](https://jekyllrb.com/docs/datafiles/). | ||
|
||
To attribute an author to a post or page that is different from the site author specified in `_config.yml`: | ||
|
||
**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.). | ||
**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.). | ||
|
||
```yaml | ||
# /_data/authors.yml | ||
|
||
Billy Rick: | ||
name: "Billy Rick" | ||
uri: "http://thewhip.com" | ||
email: "[email protected]" | ||
bio: "What do you want, jewels? I am a very extravagant man." | ||
avatar: "/assets/images/bio-photo-2.jpg" | ||
twitter: "extravagantman" | ||
name : "Billy Rick" | ||
bio : "What do you want, jewels? I am a very extravagant man." | ||
avatar : "/assets/images/bio-photo-2.jpg" | ||
links: | ||
- label: "Email" | ||
icon: "fas fa-fw fa-envelope-square" | ||
url: "mailto:[email protected]" | ||
- label: "Website" | ||
icon: "fas fa-fw fa-link" | ||
url: "https://thewhip.com" | ||
- label: "Twitter" | ||
icon: "fab fa-fw fa-twitter-square" | ||
url: "https://twitter.com/extravagantman" | ||
|
||
Cornelius Fiddlebone: | ||
name: "Cornelius Fiddlebone" | ||
email: "[email protected]" | ||
bio: "I ordered what?" | ||
avatar: "/assets/images/bio-photo.jpg" | ||
twitter: "rhymeswithsackit" | ||
name : "Cornelius Fiddlebone" | ||
bio : "I ordered what?" | ||
avatar : "/assets/images/bio-photo.jpg" | ||
links: | ||
- label: "Email" | ||
icon: "fas fa-fw fa-envelope-square" | ||
url: "mailto:[email protected]" | ||
- label: "Twitter" | ||
icon: "fab fa-fw fa-twitter-square" | ||
url: "https://twitter.com/rhymeswithsackit" | ||
``` | ||
**Step 2.** Assign one of the authors in `authors.yml` to a post or page you wish to override the `site.author` with. | ||
|
Oops, something went wrong.