<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>reference on A Hugo website</title><link>https://zero2hj.github.io/categories/reference/</link><description>Recent content in reference on A Hugo website</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 02 Oct 2022 21:36:07 +0800</lastBuildDate><atom:link href="https://zero2hj.github.io/categories/reference/index.xml" rel="self" type="application/rss+xml"/><item><title>Blog_setup</title><link>https://zero2hj.github.io/blog_setup/</link><pubDate>Sun, 02 Oct 2022 21:36:07 +0800</pubDate><guid>https://zero2hj.github.io/blog_setup/</guid><description>hugo quick start 跟着 quick start doc 初始化站点, theme 选择 hugo-lithium
theme config 替换 config.toml 为主题example site 的config. 修改如下:
修改posts permlink 为 baseURL/post_name. 修改single page template, 增加 tag 显示区域. 避免 _index.md 使用list page 模板渲染. 因为要自定义索引页. 配置 archetype. 配置菜单 content organization 如果需要发表系类文章, 系列名为demo, 陆续发表两篇文章 Go, Java. 过程如下:
hugo new posts/demo/_index.md, 作为系列文章首页包含概述和文章索引. 发布后的URL为demo posts 间的引用语法link. hugo new posts/demo/Java.md. 发布后的URL为 /java hugo new posts/demo/Go.md. 发布后的URL为 /Go 添加菜单 [[menu.main]] name = &amp;quot;demo&amp;quot; url = &amp;quot;/pl/&amp;quot; deploy use github action and github pages.</description></item></channel></rss>