<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Hugo on hobbyworker취미생활자</title>
    <link>https://hobbyworker.me/zh-hant/categories/hugo/</link>
    <description>Recent content in Hugo on hobbyworker취미생활자</description>
    <generator>Hugo</generator>
    <language>zh-hant</language>
    <copyright>2026 hobbyworker</copyright>
    <lastBuildDate>Sat, 25 Mar 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://hobbyworker.me/zh-hant/categories/hugo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>使用GitHub Actions將Hugo靜態網站部署到GitHub Pages</title>
      <link>https://hobbyworker.me/zh-hant/dev/2023-03-25-deploying-a-hugo-static-site-to-github-pages-with-github-actions/</link>
      <pubDate>Sat, 25 Mar 2023 00:00:00 +0000</pubDate>
      <guid>https://hobbyworker.me/zh-hant/dev/2023-03-25-deploying-a-hugo-static-site-to-github-pages-with-github-actions/</guid>
      <description>使用hugo.yaml工作流程設定，可透過GitHub Actions自動將Hugo靜態網站部署到GitHub Pages。若要設定工作流程，請在.github/workflows/目錄中建立hugo.yaml檔案，並複製提供的YAML設定。此外，請在專案中設定GitHub Pages，選擇「GitHub Actions」作為建置與部署的來源。這樣的設定能在推送至主要分支或從Actions頁籤手動觸發時，無縫部署您的網站。透過自動化建置與部署流程，您可以專注於內容創作與更新，同時善用GitHub Actions內建的CI/CD功能來強化開發工作流程。</description>
    </item>
    <item>
      <title>為使用PaperMod主題的Hugo部落格新增廣告攔截器偵測功能</title>
      <link>https://hobbyworker.me/zh-hant/dev/2023-03-24-adding-adblocker-detection-to-your-hugo-blog-with-papermod-theme/</link>
      <pubDate>Fri, 24 Mar 2023 00:00:00 +0000</pubDate>
      <guid>https://hobbyworker.me/zh-hant/dev/2023-03-24-adding-adblocker-detection-to-your-hugo-blog-with-papermod-theme/</guid>
      <description>在本篇文章中，我們示範了如何使用PaperMod主題為Hugo部落格新增廣告攔截器偵測功能。我們提供了逐步指南，包含建立自訂CSS與JavaScript檔案、新增部分HTML檔案以顯示警告訊息，以及擴充head與footer區塊以包含新檔案。結果是，啟用廣告攔截器的使用者將看到一則禮貌的警告訊息，鼓勵他們透過停用廣告攔截器或將網站加入白名單來支持網站內容。</description>
    </item>
  </channel>
</rss>
