<?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-hans/tags/hugo/</link>
    <description>Recent content in Hugo on hobbyworker취미생활자</description>
    <generator>Hugo</generator>
    <language>zh-hans</language>
    <copyright>2026 hobbyworker</copyright>
    <lastBuildDate>Sat, 25 Mar 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://hobbyworker.me/zh-hans/tags/hugo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>将 Hugo 静态网站使用 GitHub Actions 部署到 GitHub Pages</title>
      <link>https://hobbyworker.me/zh-hans/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-hans/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 设置，选择 &amp;#39;GitHub Actions&amp;#39; 作为构建和部署的来源。这种设置可以在将代码推送到主分支或从 Actions 选项卡手动触发时，实现无缝部署您的网站。通过自动化构建和部署过程，您可以专注于内容创建和更新，同时利用 GitHub Actions 内置的 CI/CD 能力来增强开发工作流程。</description>
    </item>
    <item>
      <title>为您的 Hugo 博客使用 PaperMod 主题添加广告拦截检测</title>
      <link>https://hobbyworker.me/zh-hans/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-hans/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>
