Skip to content

Commit

Permalink
🔥 Feat: migrate JSON feed to hugo-fixit/hugo-json-feed
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Aug 24, 2024
1 parent d913b1f commit e9f2943
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 119 deletions.
1 change: 0 additions & 1 deletion demo/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ baseURL = "http://example.org/"
# FixIt theme version
version = "0.3.X" # e.g. "0.2.X", "0.2.15", "v0.2.15" etc.
# ...

21 changes: 6 additions & 15 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ enableEmoji = true
# -------------------------------------------------------------------------------------

[mediaTypes]
# FixIt 0.3.10 | NEW Options to make output feed.json files
# Warning: The application/feed+json media type will cause an unknown error in resources.GetRemote!
# [mediaTypes."application/feed+json"]
# suffixes = ["json"]

Expand Down Expand Up @@ -274,13 +272,6 @@ enableEmoji = true
isPlainText = true
isHTML = false
notAlternative = true
# FixIt 0.3.10 | NEW Options to make output feed.json file
[outputFormats.feed]
baseName = "feed"
# Warning: The application/feed+json media type will cause an unknown error in resources.GetRemote!
mediaType = "application/json"
isPlainText = true
isHTML = false
# FixIt 0.3.10 | NEW Options to make output search.json file
[outputFormats.search]
baseName = "search"
Expand All @@ -296,17 +287,17 @@ enableEmoji = true
# -------------------------------------------------------------------------------------

# Options to make hugo output files, the optional values are below:
# home = ["html", "rss", "feed", "archives", "offline", "readme", "baidu_urls", "search"]
# home = ["html", "rss", "archives", "offline", "readme", "baidu_urls", "search"]
# page = ["html", "markdown"]
# section = ["html", "rss", "feed"]
# section = ["html", "rss"]
# taxonomy = ["html"]
# term = ["html", "rss", "feed"]
# term = ["html", "rss"]
[outputs]
home = ["html", "rss", "feed", "archives", "offline", "readme", "baidu_urls", "search"]
home = ["html", "rss", "archives", "offline", "readme", "baidu_urls", "search"]
page = ["html", "markdown"]
section = ["html", "rss", "feed"]
section = ["html", "rss"]
taxonomy = ["html"]
term = ["html", "rss", "feed"]
term = ["html", "rss"]

# -------------------------------------------------------------------------------------
# Taxonomies Configuration
Expand Down
3 changes: 0 additions & 3 deletions layouts/_default/home.feed.json

This file was deleted.

83 changes: 0 additions & 83 deletions layouts/partials/feed/json.html

This file was deleted.

2 changes: 1 addition & 1 deletion layouts/partials/init/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.10-e4035606" -}}
{{- .Scratch.Set "version" "v0.3.10-d913b1fa" -}}
{{- .Scratch.Set "this" dict -}}

{{- partial "init/detection-env.html" . -}}
Expand Down
8 changes: 0 additions & 8 deletions layouts/section/section.feed.json

This file was deleted.

8 changes: 0 additions & 8 deletions layouts/taxonomy/list.feed.json

This file was deleted.

0 comments on commit e9f2943

Please sign in to comment.