stuartmaxwell / djpress

A blog application for Django sites, inspired by classic WordPress.
https://stuartmaxwell.github.io/djpress/
MIT License
7 stars 0 forks source link

HTML link tag for the RSS feed #42

Closed stuartmaxwell closed 3 weeks ago

stuartmaxwell commented 3 weeks ago

We don't have a template tag that generates the HTML link element to include in the page.

This should be: {% rss_link %}

If RSS_ENABLED is set to False, this will return an empty string. Otherwise, it will return the HTML link tag as follows:

<link rel="alternate" type="application/rss+xml" title="Latest Posts" href="/rss/">