Skip to content

Commit

Permalink
filter xml feed to english language only
Browse files Browse the repository at this point in the history
  • Loading branch information
bitschmidty committed Oct 30, 2019
1 parent fce6c2f commit 560573f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</author>
{% endif %}

{% assign posts = site.posts | where_exp: "post", "post.draft != true" %}
{% assign posts = site.posts | where:"lang","en" | where_exp: "post", "post.draft != true" %}
{% for post in posts limit: 10 %}
<entry{% if post.lang %}{{" "}}xml:lang="{{ post.lang }}"{% endif %}>
<title type="html">{{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
Expand Down

0 comments on commit 560573f

Please sign in to comment.