hugo安装及使用

hugo简介 世界上最快的网站构建框架 Hugo是最受欢迎的开源静态站点生成器之一。凭借其惊人的速度和灵活性,Hugo 让构建网站再次变得有趣。 1. 安装hugo [root@prometheus download]# axel -n 30 https://github.com/gohugoio/hugo/releases/download/v0.113.0/hugo_0.113.0_linux-amd64.tar.gz [root@prometheus download]# tar xf hugo_0.113.0_linux-amd64.tar.gz -C /usr/local/bin/ 2. 安装git [root@prometheus download]# yum install -y git 3. 配置hugo [root@prometheus download]# mkdir /opt/hugo [root@prometheus download]# cd /opt/hugo [root@prometheus hugo]# hugo new site blog [root@prometheus hugo]# cd blog/ [root@prometheus blog]# git init Initialized empty Git repository in /opt/hugo/blog/.git/ # 此步可能需要科学上网 [root@prometheus blog]# git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod ############ # 配置代理,方可进行下面clone [root@docker /usr/local/hugo/quickstart]# export HTTP_PROXY="http://172....

June 15, 2023 · 3 min · 570 words · Jack