PaperMod 主题完全使用指南
什么是 PaperMod? PaperMod 是一个为 Hugo 设计的极简主题,以其简洁的设计、快速的加载速度和丰富的功能配置而受欢迎。它提供了现代化的外观,同时保持了高性能和易用性。 为什么选择 PaperMod? 1. 极简设计 PaperMod 采用极简主义设计理念,页面清爽,专注于内容展示。没有多余的装饰,让读者专注于你的文章。 2. 高性能 主题经过优化,加载速度快,SEO 友好。生成的网站在 Google PageSpeed Insights 上通常能获得高分。 3. 丰富的功能 深色/浅色主题切换 多语言支持 内置搜索功能 社交媒体分享 代码高亮 响应式设计 4. 易于定制 通过简单的配置和 CSS 覆盖,可以轻松自定义主题外观。 安装 PaperMod 方法 1:使用 Git Submodule(推荐) git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod git submodule update --init --recursive 方法 2:直接克隆 git clone https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod 基础配置 1. 在 hugo.yaml 中启用主题 theme: PaperMod 2. 配置基本参数 params: title: "Your Site Title" description: "Site description" author: "Your Name" # 主题相关 defaultTheme: auto # auto/dark/light disableThemeToggle: false # 文章显示选项 ShowReadingTime: true ShowShareButtons: true ShowPostNavLinks: true ShowBreadCrumbs: true 主要功能配置 1. 首页配置 使用 profileMode 配置首页显示个人信息: ...