Wei Zhang's Blog

24 Sep 2021

Hugo+Firebase: building blog and adding new posts

This blog is built using Hugo and is hosted at Google’s servers using Firebase. See Quick Start for installation and setting up sites with Hugo.

Once the blog is built, a new post can be added by the following steps.

  1. Create a new post in the blog

    hugo new content/posts/name-of-the-new-post.md
    
  2. Add content to the new post

    vim content/posts/name-of-the-new-post.md
    
  3. View the blog locally

    hugo server -D
    

    Note: to view the effect made by changing the theme’s css files, run instead

    hugo server -D --noHTTPCache
    
  4. Build static pages

    hugo
    
  5. Deploy by Firebase

    firebase deploy
    

Tags