hugo-fixit / FixIt

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

新增归档页面、增强全站所有文章时间线 #396

Closed Lruihao closed 8 months ago

Lruihao commented 8 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/