<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>教學 on Hugo 社群文檔</title><link>https://hugo-community-docs.github.io/zh-tw/tutorial/</link><description>Recent content in 教學 on Hugo 社群文檔</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Mon, 01 Jan 0001 00:00:00 +0000</lastBuildDate><atom:link href="https://hugo-community-docs.github.io/zh-tw/tutorial/index.xml" rel="self" type="application/rss+xml"/><item><title>入門</title><link>https://hugo-community-docs.github.io/zh-tw/tutorial/introduction/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://hugo-community-docs.github.io/zh-tw/tutorial/introduction/</guid><description>&lt;p&gt;本文假設讀者已經對程式語言有基礎認知，不會從零介紹所有程式知識，並且在這個基礎認知上介紹 Hugo 的語法。&lt;/p&gt;</description></item><item><title>基礎語法</title><link>https://hugo-community-docs.github.io/zh-tw/tutorial/basic-syntax/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://hugo-community-docs.github.io/zh-tw/tutorial/basic-syntax/</guid><description>&lt;h2 id="計算和比較"&gt;
	計算和比較
	&lt;a class="heading-anchor" href="#%e8%a8%88%e7%ae%97%e5%92%8c%e6%af%94%e8%bc%83" aria-label="Permalink to '計算和比較'"&gt;&lt;/a&gt;
&lt;/h2&gt;&lt;p&gt;Hugo 沒有 &lt;code&gt;+&lt;/code&gt;、&lt;code&gt;&amp;lt;&lt;/code&gt; 這些符號，比較需用函式呼叫。&lt;/p&gt;</description></item><item><title>資源處理</title><link>https://hugo-community-docs.github.io/zh-tw/tutorial/resources/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://hugo-community-docs.github.io/zh-tw/tutorial/resources/</guid><description>&lt;p&gt;&lt;code&gt;resource.Resource&lt;/code&gt; 物件用於 Hugo 的資源處理。&lt;/p&gt;
&lt;h2 id="建立"&gt;
	建立
	&lt;a class="heading-anchor" href="#%e5%bb%ba%e7%ab%8b" aria-label="Permalink to '建立'"&gt;&lt;/a&gt;
&lt;/h2&gt;&lt;p&gt;有多種方式可以建立 &lt;code&gt;resource.Resource&lt;/code&gt; 物件，以全局函式來說有以下幾種方式：&lt;/p&gt;</description></item><item><title>開發設定</title><link>https://hugo-community-docs.github.io/zh-tw/tutorial/development-setup/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://hugo-community-docs.github.io/zh-tw/tutorial/development-setup/</guid><description>&lt;p&gt;本文介紹 Hugo 開發相關設定。&lt;/p&gt;
&lt;h2 id="編輯器設定"&gt;
	編輯器設定
	&lt;a class="heading-anchor" href="#%e7%b7%a8%e8%bc%af%e5%99%a8%e8%a8%ad%e5%ae%9a" aria-label="Permalink to '編輯器設定'"&gt;&lt;/a&gt;
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;VS Code 語法高亮和補全：&lt;a href="https://github.com/theNewDynamic/language-hugo-vscode"&gt;theNewDynamic/language-hugo-vscode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;JetBrains 語法高亮和補全：&lt;a href="https://www.smarthugo.dev/"&gt;Smart Hugo&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="formatter-設定"&gt;
	Formatter 設定
	&lt;a class="heading-anchor" href="#formatter-%e8%a8%ad%e5%ae%9a" aria-label="Permalink to 'Formatter 設定'"&gt;&lt;/a&gt;
&lt;/h2&gt;&lt;h3 id="html"&gt;
	HTML
	&lt;a class="heading-anchor" href="#html" aria-label="Permalink to 'HTML'"&gt;&lt;/a&gt;
&lt;/h3&gt;&lt;p&gt;可以使用 prettier 插件以格式化 HTML + go-template。&lt;/p&gt;</description></item><item><title>建立主題</title><link>https://hugo-community-docs.github.io/zh-tw/tutorial/build-a-theme/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://hugo-community-docs.github.io/zh-tw/tutorial/build-a-theme/</guid><description>&lt;p&gt;這篇文章帶你從零建立主題，做中學更快理解，你說對吧。&lt;/p&gt;
&lt;h2 id="建立專案"&gt;
	建立專案
	&lt;a class="heading-anchor" href="#%e5%bb%ba%e7%ab%8b%e5%b0%88%e6%a1%88" aria-label="Permalink to '建立專案'"&gt;&lt;/a&gt;
&lt;/h2&gt;&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;hugo new project my-blog --format&lt;span class="o"&gt;=&lt;/span&gt;yaml
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; my-blog&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id="css-樣式表"&gt;
	CSS 樣式表
	&lt;a class="heading-anchor" href="#css-%e6%a8%a3%e5%bc%8f%e8%a1%a8" aria-label="Permalink to 'CSS 樣式表'"&gt;&lt;/a&gt;
&lt;/h2&gt;&lt;p&gt;先把樣式準備好，CSS 和模板無關，這裡直接複製一個簡易範本到 &lt;code&gt;assets/css/main.css&lt;/code&gt; 即可。&lt;/p&gt;</description></item></channel></rss>