saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 4e687c03f39d0bf6cc2f4ee4657691cc970b2240
parent 72e89233016f5f860c77166b5f63e62c7e04d253
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 10 Apr 2023 12:28:03 +0200

in Atom (RFC4287) an atomTextConstruct specifies the type text as the default

This saves a few bytes.

Diffstat:
Mtemplates/atom.xml/header.xml | 4++--
Mtemplates/atom.xml/item.xml | 4++--
Mtemplates/atom_content.xml/header.xml | 4++--
Mtemplates/atom_content.xml/item.xml | 4++--
4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/templates/atom.xml/header.xml b/templates/atom.xml/header.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="${lang}"> - <title type="text">${sitetitle}</title> - <subtitle type="text">${description}</subtitle> + <title>${sitetitle}</title> + <subtitle>${description}</subtitle> <updated>${siteupdated}T00:00:00Z</updated> <link rel="alternate" type="text/html" href="${siteurl}" /> <id>${siteurl}/atom.xml</id> diff --git a/templates/atom.xml/item.xml b/templates/atom.xml/item.xml @@ -1,5 +1,5 @@ <entry> - <title type="text">${title}</title> + <title>${title}</title> <link rel="alternate" type="text/html" href="${siteurl}/${filename}" /> <id>${siteurl}/${filename}</id> <updated>${updated}T00:00:00Z</updated> @@ -8,5 +8,5 @@ <name>${author}</name> <uri>${siteurl}</uri> </author> - <summary type="text">${description}</summary> + <summary>${description}</summary> </entry> diff --git a/templates/atom_content.xml/header.xml b/templates/atom_content.xml/header.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="${lang}"> - <title type="text">${sitetitle}</title> - <subtitle type="text">${description}</subtitle> + <title>${sitetitle}</title> + <subtitle>${description}</subtitle> <updated>${siteupdated}T00:00:00Z</updated> <link rel="alternate" type="text/html" href="${siteurl}" /> <id>${siteurl}/atom_content.xml</id> diff --git a/templates/atom_content.xml/item.xml b/templates/atom_content.xml/item.xml @@ -1,5 +1,5 @@ <entry> - <title type="text">${title}</title> + <title>${title}</title> <link rel="alternate" type="text/html" href="${siteurl}/${filename}" /> <id>${siteurl}/${filename}</id> <updated>${updated}T00:00:00Z</updated> @@ -8,7 +8,7 @@ <name>${author}</name> <uri>${siteurl}</uri> </author> - <summary type="text">${description}</summary> + <summary>${description}</summary> <content type="html"><![CDATA[<h1>${title}</h1> <p><strong>Last modification on </strong> <time>${updated}</time></p> %{contentfile}]]></content>