Skip to content

Commit ff4ab4f

Browse files
authored
Merge pull request #3 from GreenLunar/patch-1
Make feeds auto-discoverable by Feed Readers
2 parents cd34d09 + f4de970 commit ff4ab4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/base.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<link rel='stylesheet' href='/static/css/style.css'>
99
{{block "extraHead" .}} {{end}}
1010
<title>{{template "title" .}}</title>
11+
<link rel="alternate" type="application/atom+xml" title="{{template "title" .}} (Atom Syndication)" href="{{.Blogo.Url}}/atom">
12+
<link rel="alternate" type="application/json" title="{{template "title" .}} (JSON Feed)" href="{{.Blogo.Url}}/json">
13+
<link rel="alternate" type="application/rss+xml" title="{{template "title" .}} (RSS Feed)" href="{{.Blogo.Url}}/rss">
1114
</head>
1215
<body class="flex flex-col items-center justify-center min-h-screen py-4 font-mono text-gray-900 bg-amber-50 dark:bg-zinc-900 dark:text-gray-300">
1316
<main class="py-8 font-mono">
@@ -54,4 +57,4 @@
5457
</body>
5558
{{block "extraOutterBody" .}} {{end}}
5659
</html>
57-
{{end}}
60+
{{end}}

0 commit comments

Comments
 (0)