mathblogging / mathblogging.org

The new home for mathblogging.org
http://mathblogging.org
0 stars 1 forks source link

[head] link to feed with all posts #26

Closed pkra closed 7 years ago

pkra commented 7 years ago

Ugh. I thought we should do better and immediately do something like

<link rel="alternate" type="application/rss+xml" title="{% if page.title %}{{site.title}} - {{ page.title }}{% else %}{{ site.title }}{% endif %}" href="{{ site.url }}{{ site.baseurl }}{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}.xml" />

(so you each page has its correct feed in the metadata)

But of course the feed has a filename with a sanitized version of its title.

Maybe custom metadata in the yaml is the right approach?

pkra commented 7 years ago

I'm leaning towards a custom value in the page yaml and then

  <link rel="alternate" type="application/rss+xml" title="{% if page.title %}{{site.title}} - {{ page.title }}{% else %}{{ site.title }}{% endif %}" href="{{ site.url }}{{ site.baseurl }}{% if page.feedLink %}{{ page.feedLink }}{% else %}posts{% endif %}.xml" />

@scoskey what do you think?