Skip to content

Show blockchain records on sitemap, fix the mod date for records from PostgreSQL

Opentasks

Show blockchain records on sitemap

Right now we skip everything except filechaim records:

next unless !(%s<type>:exists) || %s<type> == 0;

Modify date for records from PostgreSQL

It shows now as table modification time:

<urlset>
  <url>
    <loc>https://pheix.org</loc>
    <lastmod>2025-03-11</lastmod>
  </url>
  <url>
    <loc>
https://pheix.org/embeddeduser/page/decentralized-authentication
</loc>
    <lastmod>2025-06-06</lastmod>
  </url>
  <url>
    <loc>https://pheix.org/embeddeduser/feedback</loc>
    <lastmod>2025-06-06</lastmod>
  </url>
  <url>
    <loc>
https://pheix.org/embeddeduser/homeland-release-countdown
</loc>
    <lastmod>2025-06-06</lastmod>
  </url>
  <url>
    <loc>
https://pheix.org/embeddeduser/page/multi-network-ethereum-dapp-in-raku
</loc>
    <lastmod>2025-06-06</lastmod>
  </url>
  <url>
    <loc>https://pheix.org/embeddeduser/rc2-announcement</loc>
    <lastmod>2025-06-06</lastmod>
  </url>
  ...
</urlset>

The reason is: https://gitlab.com/pheix/dcms-raku/-/blob/develop/lib/Pheix/Model/Database/DBI.rakumod#L74

method get_modify_time(Str :$tab) returns Instant {
    return now;
}
Edited by Konstantin Narkhov