主体功能
-
启动静态网页
hugo server –buildDrafts
-
重新生成public文件
hugo -D
-
我的博客托管的存储库(Github)
wzy-YaeMiko.github.io
创建文章
-
创建一篇文章叫myFirstBlog
hugo new content post/myFirstBlog/index.md
文章在 content/post/myFirstBlog
-
文章修改
-–
date = ‘2025-01-26T20:25:15+08:00’ //创建时间
draft = true // 草稿
title = ‘数通基础’ //标题
Categories=[“数据通信”] //类别
Tags= [“hica”, “初级”] //标签
image = “IMG_0993.JPG” //上面和页面的图片
-–
-
图片放的位置
content/post/myFirstBlog里面
创建归档
-
创建一个归档叫"数据通信"
在 content/categories中创建一个叫"数据通信"的文件夹
在"数据通信"的文件夹中创建一个_index.md的markdown文件
-
归档编写
-–
title: “数据通信” //标题
description: “This is an example category” //归档留言
slug: “test” //关键词
image: “xiaogong.jpg” //归档表面的图片
style:
background: “#f1faee” //图片的背景颜色
color: “#fff” //归档的外框颜色
-–
-
图片放的位置
content/categories/数据通信里面