Hello World!

Jacob Xie published on
1 min, 178 words

Categories: Post

Tags: Rust

Hello everyone 👋! This is the first post I made, and I hope I can persistently record my thoughts through my blog!

This blog is powered by Zola. Want to paly with Zola? Please follow the steps below.

Prerequisites

Installation

  • Make sure libsass is installed:

    sudo apt-get install libsass-dev
    
  • Use Github cli to clone repo:

    gh repo clone getzola/zola
    
    # or by git clone
    git clone git@github.com:getzola/zola.git
    
  • Build Rust binary executable:

    cd zola
    cargo build --release
    
  • Move to user bin folder:

    mv ./target/release/zola ~/.local/bin/zola
    
  • (Optional) If .local/bin is not in your path:

    vim ~/.bashrc
    

    and add this line:

    export PATH=$PATH:~/.local/bin
    

    then:

    source ~/.bashrc
    
  • Check installation:

    zola --help
    

Setup

  • Project init:

    zola init my-blog
    
  • Select a theme (I chose DeepThought):

    git clone git@github.com:RatanShreshtha/DeepThought.git themes/DeepThought
    

Deploy

Please check the official instruction.