~gitpocket/gitpocket

Advertise atom feeds to feed readers #1

How the series changed between revision 1 (5a5be3352d) and revision 3 (f8490fe61f), computed with git range-diff. Lines marked = are unchanged commits, ! were rewritten, > are new and < were dropped.

1:  de63dcc ! 1:  204ee9b feat(web): advertise the commit feed in the page head    @@ Metadata     Author: james <j@cpl0.zip>           ## Commit message ##    -    feat(web): advertise the commit feed in the page head    +    feat(web): advertise commit, issue, pull request and user feeds in the page head           ## templates/layout.html ##     @@      <title>{{.Title}}</title>      <link rel="stylesheet" href="/static/style.css?v={{.Version}}">      <link rel="stylesheet" href="/static/highlight.css?v={{.Version}}">    -+{{with .Data}}{{with index . "Page"}}<link rel="alternate" type="application/atom+xml" title="{{.Repo.Path}} commits" href="/{{.Repo.Path}}/feed">{{end}}{{end}}    ++{{with .Data}}{{with index . "Page"}}<link rel="alternate" type="application/atom+xml" title="{{.Repo.Path}} commits" href="/{{.Repo.Path}}/feed">    ++<link rel="alternate" type="application/atom+xml" title="{{.Repo.Path}} issues" href="/{{.Repo.Path}}/issues/feed">    ++<link rel="alternate" type="application/atom+xml" title="{{.Repo.Path}} pull requests" href="/{{.Repo.Path}}/pulls/feed">{{end}}{{if index . "Profile"}}{{with index . "Owner"}}<link rel="alternate" type="application/atom+xml" title="~{{.Name}} commits" href="/~{{.Name}}/feed">{{end}}{{end}}{{end}}      {{if .Math}}<link rel="stylesheet" href="/static/katex/katex.min.css">      <script defer src="/static/katex/katex.min.js"></script>      <script defer src="/static/katex/auto-render.min.js"></script>2:  5a5be33 < -:  ------- fix(web): title on the profile feed tab-:  ------- > 2:  f8490fe docs(basin): note feed autodiscovery