dss-ialh / dss-blogs

Communication portal of Data Science Studio at the Institute of Aging and Lifelong Health
GNU General Public License v3.0
1 stars 0 forks source link

YAML header - Proper way to indicate the author #38

Closed andkov closed 3 years ago

andkov commented 4 years ago

@mmmmtoasty19 @mrparker909 @huttoncp

I have just discovered that we've been listing authors incorrectly. When in the YAML header we listed

---
author: Kyle Belanger
---

which resulted in the name of the author to be omitted from the card of the post: image

However, when using authors and listing the name(s) on individual lines after a dash, displays the name in the top left of the card and allows to select all publications of this author

---
authors: 
- Kyle Belanger
---

image

I've corrected the existing posts to make sure the authors are listed properly. Let's follow this convention going forward.

mrparker909 commented 4 years ago

This is very good to know! It will be especially handy as we amass more blog posts and more contributing authors.

andkov commented 4 years ago

@mrparker909 wow, YAML is even more finicky than i could have imagined. Apparently, the leading space before the dash renders it inactive. So


---
authors:
 - Matthew Parker
---

does NOT work, and

---
- Matthew Parker
---

does. I already fixed it. Just FYI.

huttoncp commented 4 years ago

great catch @andkov