Skip to content

Commit

Permalink
feat: add initial support for feed.json
Browse files Browse the repository at this point in the history
Close #879
  • Loading branch information
HEIGE-PCloud committed Mar 29, 2024
1 parent 4a810e0 commit 520090b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/partials/head/link.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
<link rel="feed" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ $.Site.Title }}">
{{- end -}}

{{- with .OutputFormats.Get "JsonFeed" -}}
<link rel="alternate" type="application/feed+json" href="{{ .RelPermalink }}" title="{{ $.Site.Title }}" />
{{- end -}}

{{/* tailwind.css */}}
{{ $style := dict "Source" "css/main.css" "Minify" true }}
{{- partial "plugin/style.html" $style -}}
Expand Down

0 comments on commit 520090b

Please sign in to comment.