~adnano/kiln-discuss

3 2

default atom.xml template missing link in entries

Details
Message ID
<YyyvUyW5vW31SVCy@tilde.club>
DKIM signature
missing
Download raw message
Hello,

I'm using kiln to manage my capsules and it is a really nice tool. Thank you :)

I had issue with the default atom feed while trying to subscribe using amfora. I
think I've found why using the w3c validator [1].

Each entries needs to have in additino to 'id', 'title' and 'updated' the
parameter 'link' with 'rel="alternate"'

So the following template makes my feed working:

```
{{ `<?xml version="1.0" encoding="utf-8"?>` | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .URL }}</id>
<title>{{ .Title }}</title>
<updated>{{ site.Generated.Format "2006-01-02T15:04:05Z07:00" }}</updated>
<link href="{{ .URL | safeURL }}" rel="alternate"/>
{{ range .Pages }}<entry>
        <link href="{{ .URL | safeURL }}" rel="alternate"/>
        <id>{{ .URL }}</id>
        <title>{{ .Title }}</title>
        <updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}</updated>
</entry>
{{ end -}}
</feed>
```

To be honest I've well understood how to submit patch, so I hope it could help
other having the same issue.

Bye,
Valvin.


[1]: https://validator.w3.org/feed/
Details
Message ID
<CN35SNAPSXH1.32HF84D7AEK3B@nitro>
In-Reply-To
<YyyvUyW5vW31SVCy@tilde.club> (view parent)
DKIM signature
missing
Download raw message
> I'm using kiln to manage my capsules and it is a really nice tool. Thank you :)

Glad you like it!

> I had issue with the default atom feed while trying to subscribe using amfora. I
> think I've found why using the w3c validator [1].
>
> Each entries needs to have in additino to 'id', 'title' and 'updated' the
> parameter 'link' with 'rel="alternate"'

Thanks for pointing this out!

If you don't want to send a patch, I will push a fix out for this soon.
Details
Message ID
<YyyyVQ2jFplWfZC2@tilde.club>
In-Reply-To
<CN35SNAPSXH1.32HF84D7AEK3B@nitro> (view parent)
DKIM signature
missing
Download raw message
Le Thu, Sep 22, 2022 at 02:58:40PM -0400, Adnan Maolood a écrit :
> If you don't want to send a patch, I will push a fix out for this soon.

Sorry I did a typo in my previous message. It is not I don't want to send patch
but I've not understood how to make it. I'm used to use gitlab and Merge Request
and even if it is simple I don't know how to make a patch :)
Details
Message ID
<CN36165TIB0C.351Z4US6MSXSK@nitro>
In-Reply-To
<YyyyVQ2jFplWfZC2@tilde.club> (view parent)
DKIM signature
missing
Download raw message
> Sorry I did a typo in my previous message. It is not I don't want to send patch
> but I've not understood how to make it. I'm used to use gitlab and Merge Request
> and even if it is simple I don't know how to make a patch :)

No problem :) If you are interested in learning,
https://git-send-email.io is a good starting point.
Reply to thread Export thread (mbox)