<?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 Net Boy</title>
    <link>https://lian.st/categories/hugo/</link>
    <description>Recent content in Hugo on Net Boy</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-gb</language>
    <lastBuildDate>Sat, 25 Jan 2025 21:55:54 +0800</lastBuildDate><atom:link href="https://lian.st/categories/hugo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Hugo 常用命令</title>
      <link>https://lian.st/posts/931b4dd0/</link>
      <pubDate>Sat, 25 Jan 2025 21:55:54 +0800</pubDate>
      
      <guid>https://lian.st/posts/931b4dd0/</guid>
      
      <description>&lt;h2 id=&#34;初始化新站點&#34;&gt;初始化新站點&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;hugo new site /path/site-name/
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;運行&#34;&gt;運行&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;hugo server
--bind=&amp;#34;127.0.0.1&amp;#34;    服務監聽地址
-p, --port=1313       服務監聽端口
-w, --watch[=true]    監聽站點目錄，發現文章有變動自動編譯。
-D, --buildDrafts     包括被標記為草稿的文章
-E, --buildExpired    包括已過期的文章
-F, --buildFuture     包括將在未來發布的文章
-b, --baseURL=&amp;#34;lian.st&amp;#34; 服務監聽域名
--log[=false]:        開啟日誌
--logFile=&amp;#34;/var/log/hugo.log&amp;#34; 日誌輸出路徑
-t, --theme=&amp;#34;&amp;#34;        指定主題
-v, --verbose[=false] 輸出詳細信息
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;新建文章&#34;&gt;新建文章&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;hugo new content/post/new.md
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;編譯生成靜態文件&#34;&gt;編譯生成靜態文件&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;hugo
&lt;/code&gt;&lt;/pre&gt;</description>
      
    </item>
    
  </channel>
</rss>
