基于 Hugo 和 Qubt 主题的个人播客系统
这是一个使用 Hugo 静态站点生成器搭建的播客网站,采用 Qubt 主题,专注于技术分享和个人成长内容的发布。
- 🎨 现代设计:采用 Qubt 主题,移动优先的响应式设计
- 🌓 深色模式:自动适应系统偏好,支持手动切换
- 📱 移动优化:完美的移动端体验
- ⚡ 极速加载:Hugo 静态生成,毫秒级加载
- 🎧 播客支持:内置 RSS 订阅,支持播客客户端
- 🏷️ 标签分类:灵活的内容组织和检索
- 🔍 SEO 优化:良好的搜索引擎优化
- Hugo Extended: >= 0.122.0
- Go: >= 1.23.3
Windows (Chocolatey):
choco install hugo-extendedmacOS (Homebrew):
brew install hugoLinux:
snap install hugo验证安装:
hugo versiongit clone https://gitee.com/keriko/keriko.git
cd kerikohugo mod get github.com/chrede88/qubt@latesthugo server -D访问 http://localhost:1313 查看网站
使用 Hugo 命令创建新的播客节目:
hugo new podcast/episode-003.md编辑创建的 Markdown 文件,填写节目信息:
---
title: "节目标题"
date: 2024-03-08
episode: 3
subtitle: "副标题"
description: "节目描述"
duration: "00:30:00"
audio_file: "/audio/episode-003.mp3"
audio_size: 15000000
categories:
- 技术分享
tags:
- 编程
- Hugo
---keriko/
├── assets/ # 资源文件
│ └── css/ # 自定义样式
├── config/ # 配置文件
│ └── _default/ # 默认配置
├── content/ # 内容文件
│ ├── about.md # 关于页面
│ └── podcast/ # 播客节目
├── layouts/ # 自定义布局
│ └── podcast/ # 播客专用布局
├── static/ # 静态资源
│ ├── audio/ # 音频文件
│ └── images/ # 图片资源
├── archetypes/ # 内容模板
├── go.mod # Go 模块配置
└── hugo.yaml # Hugo 配置
编辑 config/_default/params.yaml:
# 网站信息
title: 你的播客名称
description: 你的播客描述
author: 你的名字
# 播客配置
podcast:
title: 播客标题
description: 播客描述
author: 作者
email: your@email.com编辑 config/_default/menus.yaml:
main:
- name: 首页
url: /
weight: 1
- name: 播客节目
url: /podcast/
weight: 2编辑 assets/css/custom.css 添加你的自定义样式。
hugogit add .
git commit -m "更新内容"
git push origin master- 进入仓库设置
- 找到 "Gitee Pages" 服务
- 选择
public目录作为发布目录 - 点击启动
播客提供以下 RSS 订阅源:
- 完整订阅:
/podcast/index.xml - 标准 RSS:
/index.xml
# 创建新内容
hugo new podcast/episode-name.md
# 启动开发服务器(包含草稿)
hugo server -D
# 构建生产版本
hugo
# 清理构建文件
hugo --cleanDestinationDir欢迎提交 Issue 和 Pull Request!
MIT License
- 邮箱:podcast@keriko.com
- GitHub:https://github.com/keriko
- Gitee:https://gitee.com/keriko
⭐ 如果这个项目对你有帮助,请给个 Star!

