Hugo_command

警告
本文最后更新于 2023-07-26,文中内容可能已过时。
quote
tips for hugo installation and new site creation.

Commands for creating sites backend with hugo

  1. create a new markdown file

    1
    2
    
    hugo new posts/tech/name-of-file.md
    hugo new content/posts/tech/name-of-file.md
  2. create new site

    1
    
    hugo new site name
  3. Install hugo

  • Linux
    1
    2
    3
    4
    
    wget https://github.com/gohugoio/hugo/releases/download/v0.83.1/hugo_0.83.1_Linux-64bit.tar.gz
    tar -xf hugo_0.83.1_Linux-64bit.tar.gz
    sudo mv hugo /usr/local/bin/
    hugo version
Buy me a coffee~
支付宝
微信
0%