earthlab / dev-earthlab-site

Development of active learning focused data intensive university classroom materials.
MIT License
0 stars 3 forks source link

Automatically generate markdown pages for each author #13

Closed mbjoseph closed 7 years ago

mbjoseph commented 7 years ago

This automatically produces markdown files associated with each author, to solve #4

lwasser commented 7 years ago

this is so great!! thanks @mbjoseph - one less thing for me to do. One small change -- the RMD needs to produce a MD file that looks like this:

----        
layout: post-by-author  
author: Matt Oakley
permalink: /authors/matt-oakley/
title: 'Matt Oakley'    
author_profile: false
site-map: true
----

From what i can tell, the md pages now are missing the --- at the beginning and and which designates the content as front matter . If i am missing something, please let me know.

Also - we should briefly chat about listing authors by friendly name (with spaces) vs the slug in the front matter. Programmatically do you think it's ok to use Matt Oakley vs matt-oakley ? i think i've used the friendly name (with spaces) on other sites but just wanted to see what you thought. sometimes it's a bit more fool prof to not allow spaces and such when coding.

mbjoseph commented 7 years ago

Ok the yaml is now fenced in above and below with 4 hyphens. I think listing authors by friendly names is probably fine.