feat(web): advertise the commit feed in the page head
1 files changed, +1 −0
- templates/layout.html modified +1 −0
templates/layout.html modified
| @@ -6,6 +6,7 @@ | ||
| 6 | 6 | <title>{{.Title}}</title> |
| 7 | 7 | <link rel="stylesheet" href="/static/style.css?v={{.Version}}"> |
| 8 | 8 | <link rel="stylesheet" href="/static/highlight.css?v={{.Version}}"> |
| 9 | +{{with .Data}}{{with index . "Page"}}<link rel="alternate" type="application/atom+xml" title="{{.Repo.Path}} commits" href="/{{.Repo.Path}}/feed">{{end}}{{end}} | |
| 9 | 10 | {{if .Math}}<link rel="stylesheet" href="/static/katex/katex.min.css"> |
| 10 | 11 | <script defer src="/static/katex/katex.min.js"></script> |
| 11 | 12 | <script defer src="/static/katex/auto-render.min.js"></script> |