We have a new website! Please report any bugs, glitches, comments, & thoughts. We <3 feedback!


Adding Markdown Policy and Pages

October 02, 2017

Context

This tutorial assumes you’ve written a Markown document that you’d like to formally add to website. You can brush up on your Markdown here.

Posting a Markdown document this way will give it a title & direct link in the Footer, no other location.

We’ll be putting the document in one of the Footer Categories: About Us, Library Guides, Olin Workshop on the Library and Policies & Practices Each of these Footer Categories has its own folder. Save your document to the appropriate folder.

When titling your documents, try to the current naming convention, which is The_Document_Title.md

here's the in _posts > filename.md

Creation

Open your preferred code editor (folks around here seem to lean toward Atom, but there’s a Sublime Text contingent too.)

Now, from the editor open footer.html

footer.html is found in _includes > footer.html

footer.html is found by navigating to

It gets a little less pretty here. Your file should look something like this, disregarding the colors.

footer html code

Reading more closely, you’ll see the Footer Categories inside the <article> tags. These are About Us, Library Guides, Olin Workshop on the Library and Policies & Practices

<article class="...">
  <h4 class="...">Policies & Practices</h4>

article html code

Then, duplicate one of the <li></li>’s in that category and paste it beneath the last one.

 <li class="...">
   <a class="..." href="../policies_practices/event_policy" title="event policy">Event Policy</a>
 </li>

li html code

Now edit the href=”…“ to the correct file path to the folder where you saved your document

 <li class="...">
   <a class="..." href="../FOOTER_CATEGORY_FOLDER/FILENAME(without.md)" title="DESCRIPTION">DOCUMENT_TITLE</a>
 </li>

Hit save. Hold your breath. Refresh the website. Exhale.