You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* make bin/build more robust
* make bin/deploy more robust
* exclude Makefile from build/deploy
* consolidate build/deploy/etc instructions into README
* update exclude config to remove old files
<!-- TOC start (generated with https://derlin.github.io/bitdowntoc/) -->
10
+
-[Quick Start](#quick-start)
11
+
-[Managing Posts and Drafts](#managing-posts-and-drafts)
12
+
-[Drafts](#drafts)
13
+
-[Tips and Tricks](#tips-and-tricks)
14
+
-[Additional Commands](#additional-commands)
15
+
<!-- TOC end -->
16
+
17
+
## Quick Start
18
+
19
+
To get started quickly, use the following commands:
20
+
21
+
- Serve the site locally: `./bin/serve` or `./bin/serve-drafts` (includes drafts)
22
+
- Build the site: `./bin/build`
23
+
- Deploy the site: `./bin/deploy`
24
+
25
+
## Managing Posts and Drafts
26
+
27
+
### Drafts
28
+
29
+
- Create a new draft: `jekyll draft "Name of Post"`
30
+
- Serve drafts locally: `./bin/serve-drafts` or `jekyll serve --incremental --drafts`
31
+
- Promote a draft to a published post: `./bin/publish ./_drafts/post-name.md` or `jekyll publish ./_drafts/post-name.md`
32
+
- This will move the specified draft post to the `_posts` directory, making it a published post (though it won't be built or deployed automatically).
33
+
- Unpublish a post: `jekyll unpublish ./_posts/post-name.md`
34
+
- This will move the specified post from the `_posts` directory back to the `_drafts` directory, making it a draft again.
35
+
36
+
### Tips and Tricks
37
+
38
+
- Link to other posts: `[other post]({% post_url 2017-01-01-other-post %})`
39
+
- Embed an image with [jekyll-postfiles](https://github.com/nhoizey/jekyll-postfiles#how-does-it-work)
40
+
- Create a folder under `_posts` named the same as your post's markdown file
41
+
- Add images to that folder and use a relative markdown image tag: ``
42
+
- Embed a gist with [jekyll-gist](https://github.com/jekyll/jekyll-gist): `{% gist foo/12345678901234567890 %}`
43
+
- Embed a tweet with [jekyll-twitter-plugin](https://github.com/rob-murray/jekyll-twitter-plugin): `{% twitter https://twitter.com/rubygems/status/518821243320287232 %}`
44
+
45
+
## Additional Commands
46
+
47
+
- Check outdated dependencies: `./bin/outdated`
48
+
- This will list all outdated dependencies for your project.
0 commit comments