hugo-fixit / FixIt

🔧 A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://fixit.lruihao.cn
MIT License
769 stars 106 forks source link

:sparkles: Feat: add archives page template #397

Closed Lruihao closed 10 months ago

Lruihao commented 10 months ago

Usage

  1. add outputFormats.archives as below:

    [outputFormats]
      # ...
      # FixIt 0.3.0 | NEW Options to make output /archives/index.html file
      [archives]
        path = "archives"
        baseName = "index"
        mediaType = "text/html"
        isPlainText = false
        isHTML = true
        permalinkable = true
  2. add "archives" in outputs.home as below:

    [outputs]
      home = ["HTML", "RSS", "JSON", "BaiduUrls", "archives"]
      # ...
  3. Head to http://localhost:1313/archives/ or add menu to header.

Demo

Demo: https://lruihao.cn/archives/

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fixit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 29, 2023 7:55am