Skip to content

Commit

Permalink
Add outputFormats to hugo.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Emruz Hossain <[email protected]>
  • Loading branch information
hossainemruz committed Feb 6, 2025
1 parent 3fcdc6c commit 4b56bdc
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 70 deletions.
10 changes: 7 additions & 3 deletions exampleSite/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ outputs:
- RSS
- JSON

# Configure custom path for RSS feed. Default is "index.xml"
outputFormats:
rss:
baseName: rss # default is index
mediaType: application/rss+xml
isPlainText: false

# Enable global emoji support
enableEmoji: true

Expand Down Expand Up @@ -299,9 +306,6 @@ params:
readingTime:
enable: true

# Add RSS feed path configuration
rssPath: /rss.xml

# Provide footer configuration.
footer:
enable: true
Expand Down
143 changes: 79 additions & 64 deletions exampleSite/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion exampleSite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"imagesloaded": "^5.0.0",
"include-media": "^1.4.10",
"ityped": "^1.0.3",
"katex": "^0.16.21",
"katex": "^0.16.11",
"mark.js": "^8.11.1",
"mermaid": "^11.4.1",
"plyr": "^3.7.2",
Expand Down
2 changes: 0 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
{{ .Content | safeJS }}
</script>
{{ end }}
{{ $rssPath := .Site.Params.rssPath | default "/index.xml" }}
<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ $rssPath | relURL }}">
</head>

<body class="type-{{ .Page.Type }} kind-{{ .Page.Kind }}" data-bs-spy="scroll" data-bs-target="#TableOfContents" data-bs-offset="80">
Expand Down

0 comments on commit 4b56bdc

Please sign in to comment.