杜郎俊赏 - dujun.io

开源实例之Hugo

前言

The world's fastest framework for building websites.

Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.

Hugo 是基于 Go 语言开发的静态网站生成工具,快速、易用。

实例地址

http://hugo.dujun.eu.org

实例配置

配置描述
系统Debian
开发环境服务端Go 1.20
服务器Nginx
程序Hugo 0.112.5
模版Ananke 2.9.1

实例部署

权限要求

  • 具有系统读写权限
  • 已安装 Go
  • 已安装 Nginx

安装程序

官网地址:https://gohugo.io
仓库地址:https://github.com/gohugoio/hugo

#apt 安装
apt install hugo

#deb 安装,下载仓库 release 包
dpkg -i hugo_extended_0.112.5_linux-amd64.deb

#创建项目
hugo new site app

#开发环境运行
hugo server

安装模版

模版仓库:https://github.com/theNewDynamic/gohugo-theme-ananke

cd exampleSite

#生成静态文件 public
hugo

实例体验

首页

文章

进入实例深度体验

后记

本实例仅供参考,不定期重置数据。

体验更多开源实例

标签: 开源实例 个人开源实例 静态博客开源实例 Go开源实例
日期:2023-05-29