-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.xml
50 lines (46 loc) · 2.61 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Kingram</title>
<link>http://kingram.top/</link>
<description>Recent content on Kingram</description>
<generator>Hugo -- gohugo.io</generator>
<language>zh-hans</language>
<copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright>
<lastBuildDate>Tue, 13 Jul 2021 00:00:00 +0000</lastBuildDate><atom:link href="http://kingram.top/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>hugo + nginx 搭建博客记录</title>
<link>http://kingram.top/posts/hugo_nginx_blog/</link>
<pubDate>Tue, 13 Jul 2021 00:00:00 +0000</pubDate>
<guid>http://kingram.top/posts/hugo_nginx_blog/</guid>
<description>Hugo简介 Hugo是由Go语言实现的静态网站生成器。简单、易用、高效、易扩展、快速部署。
准备和环境 我直接在我的阿里云服务器上使用hugo了,环境如下:
操作系统:公共镜像CentOS 8.1 64位 Nginx版本:Nginx 1.16.1 域名:kingram.top 阿里云服务器:8.136.204.132 Hugo使用 安装Hugo 由于我用的是Linux系统,直接wget下载安装就好了,其他系统参考Hugo中文文档其他版本参考Hugo Releases
cd ~ wget https://github.com/gohugoio/hugo/releases/download/v0.85.0/hugo_0.85.0_Linux-64bit.tar.gz tar -zxvf hugo_0.85.0_Linux-64bit.tar.gz mv hugo /usr/bin/ 检查是否安装成功
hugo version输出
hugo v0.85.0-724D5DB5 linux/amd64 BuildDate=2021-07-05T10:46:28Z VendorInfo=gohugoio就说明安装成功啦
创建blog站点 在当前目录执行命令创建blog站点
hugo new site myblog这个myblog就是项目的名字了,创建的目录如下
├── archetypes│ └── default.md├── config.toml # 博客站点的配置文件├── content # 博客文章所在目录├── data ├── layouts # 网站布局├── static # 一些静态内容└── themes # 博客主题我们的博客文章就放在content目录下的posts中,只需要按照Markdown格式编写,hugo就会读取到文章然后展示在博客中。</description>
</item>
<item>
<title>关于</title>
<link>http://kingram.top/about/</link>
<pubDate>Mon, 12 Jul 2021 00:00:00 +0000</pubDate>
<guid>http://kingram.top/about/</guid>
<description>你好,我是kingram
欢迎来到我的博客
联系方式: Github:https://github.com/K1ngram4 QQ:390659505 邮箱:[email protected] </description>
</item>
</channel>
</rss>