Skip to content

Commit

Permalink
🚚 Feat: migrate offline page to build-in page
Browse files Browse the repository at this point in the history
remove offline type and layput
  • Loading branch information
Lruihao committed Dec 31, 2023
1 parent e482fbe commit 804d1e4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 34 deletions.
9 changes: 0 additions & 9 deletions archetypes/offline.md

This file was deleted.

10 changes: 9 additions & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,22 @@ enableEmoji = true
isPlainText = false
isHTML = true
permalinkable = true
# FixIt 0.3.0 | NEW Options to make output /offline/index.html file
[offline]
path = "offline"
baseName = "index"
mediaType = "text/html"
isPlainText = false
isHTML = true
permalinkable = true

# -------------------------------------------------------------------------------------
# Customizing Output Formats
# See: https://gohugo.io/templates/output-formats/#customizing-output-formats
# -------------------------------------------------------------------------------------

[outputs]
home = ["HTML", "RSS", "JSON", "BaiduUrls", "archives"]
home = ["HTML", "RSS", "JSON", "BaiduUrls", "archives", "offline"]
page = ["HTML", "MarkDown"]
section = ["HTML", "RSS"]
taxonomy = ["HTML"]
Expand Down
File renamed without changes.
23 changes: 0 additions & 23 deletions layouts/offline/single.html

This file was deleted.

1 change: 1 addition & 0 deletions layouts/partials/init/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
{{- /* Set site home relative permalink */ -}}
{{- $homeRelPermalink := .Site.Home.RelPermalink -}}
{{- $homeRelPermalink = strings.TrimSuffix "archives/" $homeRelPermalink -}}
{{- $homeRelPermalink = strings.TrimSuffix "offline/" $homeRelPermalink -}}
{{- .Scratch.Set "homeRelPermalink" $homeRelPermalink -}}

0 comments on commit 804d1e4

Please sign in to comment.