Add blog feeds for different alternatives

This commit is contained in:
Gonzalo Pena-Castellanos 2017-09-28 17:56:06 -04:00
parent 126c95398a
commit 86995b0ceb
3 changed files with 38 additions and 2 deletions

View file

@ -3,3 +3,39 @@ name = The Buzz
source_path = /news/buzz
items = site.query('/news/buzz')
url_path = /news/buzz/atom.xml
item_model = blog-post
[blog-ar]
name = The Buzz
source_path = /news/buzz
items = site.query('/news/buzz', alt='ar_AR')
url_path = /ar_AR/news/buzz/atom.xml
item_model = blog-post
[blog-de]
name = The Buzz
source_path = /news/buzz
items = site.query('/news/buzz', alt='de_DE')
url_path = /de_DE/news/buzz/atom.xml
item_model = blog-post
[blog-es]
name = El Zumbido
source_path = /news/buzz
items = site.query('/news/buzz', alt='es')
url_path = /es/noticias/zumbido/atom.xml
item_model = blog-post
[blog-pt]
name = The Buzz
source_path = /news/buzz
items = site.query('/news/buzz', alt='pt_BR')
url_path = /pr_BR/news/buzz/atom.xml
item_model = blog-post
[blog-zh]
name = The Buzz
source_path = /news/buzz
items = site.query('/news/buzz', alt='zh_TW')
url_path = /zh_TW/news/buzz/atom.xml
item_model = blog-post

View file

@ -10,7 +10,7 @@ sort_key: 2
---
gutter:
`RSS Feed </news/buzz/atom.xml>`__
`RSS Feed </es/noticias/zumbido/atom.xml>`__
`Próximos eventos </es/noticias/eventos/>`__
----------------------------------------------------

View file

@ -5,7 +5,7 @@
{% block title %}{{ this.title }}{% endblock %}
{% block extra_head %}
<link href="{{ '/news/buzz/atom.xml'|url(alt=this.alt) }}" type="application/atom+xml" rel="alternate" title="The Buzz" />
<link href="{{ '/news/buzz'|url(alt=this.alt) }}atom.xml" type="application/atom+xml" rel="alternate" title="The Buzz" />
{% endblock %}
{% block preamble %}
<div class="banner">