<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Hugo 博客 on 日日是好日-我的生活记录</title>
    <link>http://www.ririshihaori.com:80/tags/hugo-%E5%8D%9A%E5%AE%A2/</link>
    <description>Recent content in Hugo 博客 on 日日是好日-我的生活记录</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 20 Nov 2019 20:20:31 +0800</lastBuildDate>
    <atom:link href="http://www.ririshihaori.com:80/tags/hugo-%E5%8D%9A%E5%AE%A2/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Hello Again </title>
      <link>http://www.ririshihaori.com:80/posts/2019/11/hello/</link>
      <pubDate>Wed, 20 Nov 2019 20:20:31 +0800</pubDate>
      <guid>http://www.ririshihaori.com:80/posts/2019/11/hello/</guid>
      <description>&lt;p&gt;第三次搭博客了，从来没有养成写博客的习惯&lt;br&gt;&#xA;今天看了&lt;a href=&#34;https://www.xzywisdili.com/&#34;&gt;小徐的博客&lt;/a&gt;很受震撼，决心向小徐学习&amp;#x1f618;，开始认真写博客，记录一下平时踩的坑和心路历程&lt;/p&gt;&#xA;&lt;p&gt;博客这次用的是Hugo，先用apt-get安装了一下发现版本太老了，好多主题都用不了，发布的时候会报&lt;code&gt;function not found&lt;/code&gt;的错误，所以remove后直接上github下了最新的dep包 &lt;br&gt;&#xA;下完以后可以用命令建一个网站也就是一个文件夹：&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$hugo new site blog&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;建好之后在content文件夹里面添加.md格式的src文件，然后改一下config文件就可以发布了&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;$hugo server --bind=0.0.0.0 --baseURL=http://www.ririshihaori.com -w -p 80&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;--bind&lt;/code&gt;好像设置成server ip 的话有点问题，因为阿里云的问题，所以设成0.0.0.0&lt;br&gt;&#xA;&lt;code&gt;-w&lt;/code&gt;是监视src变化的选项，一有变化随时刷新&#xA;&lt;code&gt;--baseURL&lt;/code&gt;和&lt;code&gt;-p&lt;/code&gt;设置地址和端口&lt;/p&gt;&#xA;&lt;p&gt;主题用的是&lt;a href=&#34;https://github.com/meibenny/elephants&#34;&gt;Elephants&lt;/a&gt;，极简主义~&amp;#x1f606;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
