Add an atom:link rel="self" to RSS feeds

As recommended by
<https://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html>
master
Simon McVittie 2016-01-21 07:53:39 +00:00
parent 855b757f37
commit c224367a19
1 changed files with 3 additions and 1 deletions

View File

@ -1,10 +1,12 @@
<?xml version="1.0"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/" >
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><TMPL_VAR TITLE></title>
<link><TMPL_VAR PAGEURL></link>
<atom:link href="<TMPL_VAR FEEDURL>" rel="self" type="application/rss+xml"/>
<TMPL_IF COPYRIGHT>
<copyright><TMPL_VAR COPYRIGHT ESCAPE=HTML></copyright>
</TMPL_IF>