Blogging with Deno Fresh

Cloning the Blog Template

  1. if you don't already have one, make a github account.
  2. go to this template repository.
    • click "Use This Template", then "Create a new repository"
    • give it a descriptive name, such as "dms1_blog" or similar
    • click "Create Repository"

Using the GitHub Online Editor

Pressing . (full stop) on your keyboard while your browser is at your GitHub repo will open the Github Web Editor

Writing Markdown

Building locally

In order to build locally you will need a few things installed on your computer.

Git

Once you have Git installed on your computer, you should be able to make a local version of your GitHub repository by executing this line of code in a terminal (macOS) or PowerShell (Windows):

Deno

Once you have Deno installed, you can build locally by executing from the root folder of your local repo:

VSCode

Once you have VSCode installed, you can open your repo by executing from the root folder of your local repo:

Deno Deploy

Unfortunately, if you have just made a brand new GitHub acccount, Deno Deploy will make you wait a week before letting you sign in.

  1. if you are able to, go to Deno Deploy and click "Sign in"
  2. click "New Project"
  3. select your GitHub username from the "Select User or Organisation" drop-down menu
  4. select your blog repo from the "Select Repository" drop-down menu
  5. click "Create & Deploy"
  6. once deployed, the URLs of your deployed blog should be visible. You can go to the site by clicking "View"
  7. Deno automatically updates the site any time you commit & push changes to your GitHub repo.