Skip to content
0

hugo部署

安装hugo

(1)安装go

https://go.dev/dl/go1.24.5.windows-amd64.msi

(2)安装hugo

Releases · gohugoio/hugo · GitHub

https://github.com/gohugoio/hugo/releases/download/v0.148.2/hugo_extended_withdeploy_0.148.2_windows-amd64.zip

快速使用

Quick start

  1. Install Hugo (extended or extended/deploy edition, v0.128.0 or later)
bash
hugo new site hugo-one
cd hugo-one
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml

hugo new content content/posts/my-first-post.md

hugo server -D
bash
+++
title = 'My First Post'
date = 2024-01-14T07:07:07+01:00
draft = true
+++
## Introduction

This is **bold** text, and this is *emphasized* text.

Visit the [Hugo](https://gohugo.io) website!
  • 效果

image-20250805143423451

其它主题

https://themes.gohugo.io/themes/fixit/

image-20250805143208088

https://themes.gohugo.io/themes/hugo-theme-dream/

image-20250805143151607

稍微看的过眼的hugo主题

结束。

声明

作者:One

版权:此文章版权归 One 所有,如有转载,请注明出处!

链接:可点击右上角分享此页面复制文章链接

上次更新时间:

最近更新