Skip to content

Latest commit

 

History

History
76 lines (46 loc) · 3.07 KB

add-a-story.md

File metadata and controls

76 lines (46 loc) · 3.07 KB

How to add a story

Once you have a transcript and have uploaded a draft to StoryCorps Connect, follow these steps to add it to opensourcestories.org. These instructions assume that you have followed the setup instructions.

1. Fork and branch

  • Fork opensourcestories/opensourcestories.org into your own GitHub account.

    • Reminder: When you clone this repository, be sure to get the submodules!
      git clone --recurse-submodules --depth 1 https://github.com/opensourcestories/opensourcestories.org.git 
  • If you already have a fork, you may want to make sure it is up-to-date.

  • We recommend creating a new branch for the new story, but this is optional.

2. Create a new content page

To generate a markdown file with the correct front matter, use the hugo command from the root directory:

$ hugo new stories/{year}/{person name}.md

This will generate a mostly empty markdown file:

title: ""
date:
description: ""
storyteller: ""
storycorps: ''
bio: ""
draft: true
---

3. Filling out the page

title: page title

date: autogenerated, but update it with the date that the story was created

description: used for the index page and any social copy

storyteller: the person telling the story

storycorps: the URL https://archive.storycorps.org/embed/{story id}, where the {story id} is the numeric portion of your uploaded StoryCorps interview ID

bio: the 2-3 sentence bio that the storyteller provided

draft: true or false, depending on whether the page is ready for publishing

Under the ---, paste the markdown of the transcript.

4. Test it out

Run the local server using the command:

$ hugo server -D

and navigate to localhost:1313 (or whichever port Hugo tells you).

5. Submit it to the repo

Once you're happy with it, make sure to set the draft to false, and push the changes to your fork. From there, submit a pull request to the base repository!