#────────────────────────────────────────────
# 1. 全局基础设置
#────────────────────────────────────────────
baseURL                   = "https://zopiya.com/"
languageCode              = "zh"
title                     = "仲平"
theme                     = "typo"
defaultContentLanguage    = "zh"
hasCJKLanguage            = true
enableEmoji               = true
canonifyURLs              = true
timeout                   = "300s"
enableRobotsTXT           = true

#────────────────────────────────────────────
# 2. 模块化（可选，推荐 Hugo Modules 管理主题）
#────────────────────────────────────────────
# [module]
#   [[module.imports]]
#     path = "github.com/7wate/typo"

#────────────────────────────────────────────
# 3. URL 与国际化
#────────────────────────────────────────────
[permalinks]
  posts = ":slug/"

# 如果未来要做多语言，这里可启用
# enableMultilingual = true
# [languages]
#   [languages.zh]
#     languageName = "中文"
#     weight       = 1
#   [languages.en]
#     languageName = "English"
#     weight       = 2

#────────────────────────────────────────────
# 4. 自定义分类、标签、系列
#────────────────────────────────────────────
[taxonomies]
  tag       = "tags"
  category  = "categories"
  series    = "series"

#────────────────────────────────────────────
# 5. 输出格式与输出控制
#────────────────────────────────────────────
[outputFormats]
  [outputFormats.RSS]
    mediaType   = "application/rss+xml"
    baseName    = "rss"
    isHTML      = false
    isPlainText = false
    noUgly      = true
    rel         = "alternate"

  [outputFormats.Feed]
    mediaType   = "application/rss+xml"
    baseName    = "feed"
    isHTML      = false
    isPlainText = false
    noUgly      = true
    rel         = "alternate"

[outputs]
  home = ["HTML", "RSS", "Feed", "SITEMAP", "ROBOTS"]

#────────────────────────────────────────────
# 6. 主题参数
#────────────────────────────────────────────
[params]
  description         = "写作与思考的个人博客，记录文字、光影与生活中的片刻感悟。"
  theme               = "auto"
  colorPalette        = "base16-default"
  hideHeader          = true
  readTime            = true
  paginationSize      = 7
  listSummaries       = false
  listDateFormat      = "2006 Jan"
  homeDateFormat      = "2 Jan"
  homeIntroTitle      = ""
  homeIntroContent    = """🌿 张力孕育生命，合力塑造结果。而真正的艺术，是在万物之间寻求平衡。"""
  homeCollectionTitle = "文辑"
  homeCollection      = "posts"

  [params.breadcrumbs]
    enabled         = true
    showCurrentPage = true
    home            = "首页"

  [params.umami]
    enable    = true
    websiteId = "91fd7346-f191-4484-943c-f6884fb2ab07"
    jsLocation = "https://umami.7wate.org/script.js"

#────────────────────────────────────────────
# 7. 菜单与社交
#────────────────────────────────────────────
[[params.menu]]
  name   = "首页"
  url    = "/"
  weight = 1

[[params.menu]]
  name   = "文辑"
  url    = "/posts/"
  weight = 2

[[params.menu]]
  name   = "片语"
  url    = "https://memos.zopiya.com/explore"
  newTab = true
  weight = 3

[[params.menu]]
  name   = "知原"
  url    = "https://x-eden.zopiya.com"
  newTab = true
  weight = 4

[[params.menu]]
  name   = "关于"
  url    = "/about/"
  newTab = true
  weight = 5

[[params.social]]
  name = "github"
  url  = "https://github.com/zopiya"

[[params.social]]
  name = "x"
  url  = "https://x.com/zopiyaaa"

[[params.social]]
  name = "maildotru"
  url  = "mailto:i@zopiya.com"

[[params.social]]
  name = "rss"
  url  = "/rss.xml"


#────────────────────────────────────────────
# 8. Markdown 与高亮
#────────────────────────────────────────────
[markup]
  [markup.highlight]
    style = "algol"

  [markup.goldmark.renderer]
    unsafe = true  # 生产环境建议设为 false

#────────────────────────────────────────────
# 9. 安全与隐私
#────────────────────────────────────────────
[security]
  enableInlineShortcodes = true


#────────────────────────────────────────────
# 10. 构建压缩与优化
#────────────────────────────────────────────
[minify]
  disableXML   = false
  minifyOutput = true

#────────────────────────────────────────────
# 11. 站点地图（SEO）
#────────────────────────────────────────────
[sitemap]
  changefreq = "weekly"
  priority   = 0.5
  filename   = "sitemap.xml"

#────────────────────────────────────────────
# 12. RSS 服务
#────────────────────────────────────────────
[services]
  [services.rss]
    limit = 7  # -1 表示不限制条目数