Skip to content

adding a YouTube video to the Lumber collection

Michelle Shannon edited this page Aug 26, 2021 · 17 revisions

adding a YouTube video to the Lumber collection


Step 1: add video to YouTube

  1. login to your YouTube account
  2. find where you can upload a video

  1. upload the video

Step 2: add metadata to csv sheet

  1. add metadata to the Lumber metadata csv Google sheet
    • NOTE: leave the "filename" field blank because you're not actually adding the raw video file to the collection, you're just linking to the YouTube video
    • NOTE: "type" should be Image;MovingImage
    • NOTE: "format" should be video/mp4
    • NOTE: in the "youtubeid" field, add the YouTube identification number, NOT the full URL. To find this, go to the YouTube page, look at the URL address, and look for the string of numbers and letters at the end:

Step 3: add csv sheet to GitHub repository

  1. open the Lumber metadata csv Google sheet and go to File/Download/comma-separated values (.csv) to download the Google sheet as a csv
  2. open Windows File Explorer and navigate to Documents/GitHub/spec-lumber/_data and replace the existing lumber.csv with the csv you just downloaded from Google sheets

Step 4: preview your changes

  1. when you've finished adding your YouTube video metadata to the Lumber metadata csv, you can preview the post by typing bundle exec jekyll s -i into the terminal
  2. search for your video

Step 5: stage your changes

  1. Go to the Source Control view in Visual Studio Code

  1. click on the "+" (plus) symbol to stage your changes

Step 6: commit your changes

  1. once your changes are staged, add a descriptive message about what your changes are. Then click on the "checkmark" to commit your changes to your local GitHub repository on your local machine

Step 7: push your changes

  1. open GitHub Desktop. You should see your descriptive message on the bottom left. If you've committed changes by accident, you can undo your commit here. If you want to push your commit, click on "Push Origin" at the top. This will push your commits to the cloud GitHub Repo, and will make your changes live on the Harvester website in approx. 5-10 minutes.