2/17/2023 0 Comments Gem install jekyll angularI’m going to assume that you have a working ruby and RubyGems install (setting these up is beyond the scope of this post). Rather than pushing to GitHub to test every little change, it’s easiest to set up Jekyll on our local machine for testing. We’re trading a little bit more work up front to avoid a whole raft of server and database maintenance headaches. Commit the new post to our git repository.Write the new post in a new Markdown formatted file in the _posts folder.Instead, we’re going to write entries in Markdown and use Jekyll to generate the HTML for our site. Since GitHub Pages only hosts static files, we can’t use a typical blog engine that stores our posts in a relational database. Once updated, you should see your "Smoke Test" page at 3. Subsequent changes will happen much faster. Git push origin master Again, it may take a little while for GitHub to process these changes. My repo will be called since my github username is markschabackerĬlone the repository onto your local machine so you can do some work:.The repository name must follow a very specific naming scheme. Create a new repository for your page.And there’s another big benefit to running. Once jekyll is installed you can use jekyll build to compile your static site or jekyll serve to compile, spin up a web server and watch the file system for changes. You just need to create a repo in a specific format and GitHub will do all the heavy lifting. But Jekyll isn’t exclusive to GitHub pages, Jekyll comes packaged as a Ruby gem that allows you to install it on your local machine. GitHub will graciously host a User/Organization or Project page for completely free. If you decide not to use DNSimple, expect to jump through a few more hoops when setting up DNS in the steps below.Sign up via my referral link and we both get a month free! Purchase a Domain NameĭNSimple makes it very easy to configure the various services that you are going to want to set up for your shiny new domain. Skip right to a diff that makes a Jekyll site deployable on Heroku or start from scratch: Here are the step by step instructions: Add a Gemfile in the Jekyll project root containing: source ruby 2.1.2 gem jekyll gem kramdown gem rack-jekyll gem rake gem puma. Here are the steps I followed to set up the blog that you’re reading right now. It’s time to check off the “Blog!” task that has been clogging the top of my Remember the Milk list for what seems like an eternity. I have put off blogging for entirely too long.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |