Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeless build #68

Open
milahu opened this issue Jun 8, 2022 · 1 comment
Open

timeless build #68

milahu opened this issue Jun 8, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@milahu
Copy link
Contributor

milahu commented Jun 8, 2022

add option for "timeless build" = on build, dont update these times:

site/index.xml
<lastBuildDate>Wed, 08 Jun 2022 08:57:59 +0000</lastBuildDate>

site/index.atom
<updated>2022-06-08T08:57:59.732044+00:00</updated>

these updates produce "diff noise" when the build is stored in git

workaround: remove the tags from site/index.xml and site/index.atom

sed -i -E 's|<lastBuildDate>[^<]+</lastBuildDate>||g' site/index.xml
sed -i -E 's|<updated>[^<]+</updated>||g' site/index.atom
@knadh knadh added the enhancement New feature or request label Aug 26, 2022
@l29ah
Copy link

l29ah commented Jul 17, 2023

Also, the use of updated in tg-archive seems to violate the atom RFC:

4.2.15.  The "atom:updated" Element

   The "atom:updated" element is a Date construct indicating the most
   recent instant in time when an entry or feed was modified in a way
   the publisher considers significant.

while tg-archive just puts the current time in, it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants