Format Tanggal RSS Feed di Django Template

Format tanggal di RSS Feed mengacu pada RFC5322 standart, dan berikut implementasi di django template:

<pubDate>{{ d.created|date:"r" }}</pubDate>

Referensi:

Django built-in template tags and filter #date

Advertisements

RSS, Sitemap dan Crawler

Barusan baca paragraf berikut di Official Google Webmaster Central:

Sitemaps can be in XML sitemap, RSS, or Atom formats. The important difference between these formats is that XML sitemaps describe the whole set of URLs within a site, while RSS/Atom feeds describe recent changes. This has important implications:

  • XML sitemaps are usually large; RSS/Atom feeds are small, containing only the most recent updates to your site.
  • XML sitemaps are downloaded less frequently than RSS/Atom feeds.

For optimal crawling, we recommend using both XML sitemaps and RSS/Atom feeds. XML sitemaps will give Google information about all of the pages on your site. RSS/Atom feeds will provide all updates on your site, helping Google to keep your content fresher in its index. Note that submitting sitemaps or feeds does not guarantee the indexing of those URLs.

Ternyata untuk optimal crawling, Google merekomendasikan webmaster untuk menyediakan sitemap sekaligus RSS feeds. Sitemap untuk list semua URL, sedang feed hanya list yang terbaru saja.

Setelah selesai dibuat, silakan submit keduanya ke Google Search Console (GWT). Kalau mau baca artikelnya, silakan menuju ke tautan berikut ini.

Best practices for XML sitemaps & RSS/Atom feeds