generated from CollectionBuilder/collectionbuilder-sa
-
Notifications
You must be signed in to change notification settings - Fork 0
checklist for a blog post referencing an external digital object (image, pdf)
Michelle Shannon edited this page Aug 26, 2021
·
1 revision
- fetch origin from spec-lumber repository in GitHub Desktop
- create new markdown file in Visual Studio Code
- add frontmatter to post
- add external digital objects to post
- preview your post
- push changes (this is a 3-step process)
- Open GitHub Desktop
- Set "Current Repository" to "spec-lumber"
- click "fetch origin"
- open GitHub Desktop and click "Open in Visual Studio Code." This will open the spec-lumber repository in Visual Studio Code
- in Visual Studio Code, click on "Terminal" and "New Terminal" in the top menu
- NOTE: make sure the terminal is set to "bash." The terminal should look similar to this:
If your terminal does NOT look like this, try the following:
- make sure you're viewing the "Terminal tab" (view tabs at top left of screenshot)
- make sure your terminal is using Bash. You can view different terminal types where it says "1: bash" in the screenshot and use the drop down menu to select the correct terminal.
- in Visual Studio Code, type
rake new_post title="title of post"
into the terminal and hit the Enter key. A new post should be created in the_posts
folder (which you can find in the left-hand navigation menu in Visual Studio Code)- NOTE: the "date" field at the top of the blog post is what dictates when the post goes live on Harvester. The file name (left hand menu) includes the date, but has no effect on when the post goes live. BEST PRACTICE is to match these two dates to whenever you want the post to go live. To change the file name, right-click on the file name (left hand menu) and click "Rename."
- in Visual Studio Code, open the new post you just created. Add the top fields as applicable.
- NOTE: the
cover-image
should just include a link to the object, not the object page - NOTE: check out Creating a Series and Adding a Post to a Series if your post is part of a series
- NOTE: tags and categories must be formatted as follows, or it will break:
- NOTE: the
- use the following include for an external digital object:
{% include feature/image.html objectid="link to object" link="link to page" caption="caption" %}
- when the content of your post has been written in Visual Studio Code, you can preview the post by typing
bundle exec jekyll s -i
into the terminal- NOTE: the date field at the top must be set for the present day or before. If the date is set for the future, you won't be able to view the post in the preview.
NOTE: if you receive a terminal error like this, it means there is an error in the code that is preventing it from fully parsing. The error will tell you which file, line, and column to look in, so you can narrow your search for the error. Here is the terminal error it will show you:
Here is the error (should be ["category"]
with a closing bracket.
- Go to the Source Control view in Visual Studio Code
- click on the "+" (plus) symbol to stage your changes
- 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
- 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, or whenever the post is scheduled.