Skip to content

Commit ab9ff3d

Browse files
authored
Add clever trick from @uma-sethuraman
Thanks Uma!!
1 parent 225f0eb commit ab9ff3d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

blog_professional/_posts/2020-07-16-blog-guide.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,18 @@ Check out my [cool cool source file]({{page.lcb}}{ site.baseurl }}/assets/userna
384384

385385
:bangbang:
386386
If you're not comfortable with Git on the command line, all of the tasks necessary to write and publish a blog post can be accomplished using GitHub's web interface!
387-
However, working on your own machine allows you to use `jekyll serve` (or, alternately `bundle exec jekyll serve`) to throw up a live local preview of your post at [https://127.0.0.1:4000/](https://127.0.0.1:4000/), which is super handy.
387+
However, working on your own machine allows you to throw up a live local preview of your post, which is super handy.
388+
389+
## Previewing Your Post
390+
391+
In order to preview your site from your own machine, you'll have to install Jekyll.
392+
Depending on the platform and whim of the install gremlins, sometimes this can be easy & sometimes it turns tricky.
393+
Then, you would just run `jekyll serve` (or, alternately `bundle exec jekyll serve`) and point your browser to at [https://127.0.0.1:4000/](https://127.0.0.1:4000/).
394+
395+
As [@uma-sethuraman](https://github.com/uma-sethuraman) figured out, you can actually have GitHub run Jekyll for you and preview your fork via GitHub pages.
396+
397+
> You can pull your blogpost branch into your fork’s master branch and then if you go to your fork’s settings, there’s a “github pages” section.
398+
> There, you can set the source to your fork’s master and then it will give you your local github url where your blog post should be hosted, so at that url, you can see what your post would look like once published.
388399
389400
## Cross-Posting onto WordPress
390401

0 commit comments

Comments
 (0)