Write your post in a text editor with spellcheck ;)
Keep track of any images you want to use
- Regular posts go in the directory
main/_posts/
- Trailer posts go in the directory
trailers/_posts/
Use the boilerplate posts found at
_drafts/2019-09-07-boilerplate-post.md
_drafts/2019-09-07-boilerplate-trailer.md
Name the file with the format: yyyy-mm-dd-POST-NAME.md
Paste {% include youtubePlayer.html id=videoId %}
or
{% include vimeoPlayer.html id=videoId %}
where videoId
is the id of the video you want to include.
Enter the make
command in your Terminal
make drafts
will build posts in the_drafts
directory- make sure your terminal window is in this repo (the
film_blog
directory)
Navigate to localhost:4000 in your browser.
Type [control]
+ c
in your terminal to stop your pages from being served to
localhost:4000
(these make
commands are shortcuts defined in the makefile
)
Add all of the files you would like to add to GitHub
git add [path to file]
git add
command documentation is here
Commit these changes with a descriptive message
git commit -m "my descriptive message"
git commit
command documentation is here
This can be a little more complicated, but if there are conflicting files in the git repository, then we need to fix these conflicts before pushing our current changes.
git pull
Resolve the merge conflicts if there are any
git add .
git commit
Note, git commit
will open up the vim text editor with a pre-populated commit
message. You can type :wq
then [enter]
to write and quit this editor.
Push these changes to the GitHub repository
git push
git push
command documentation is here
commit
local changespull
from the repomerge
orrebase
any discrepanciesmake
sure everything workspush
changes to repo