File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed
Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change 1313 }
1414}
1515---
16+
1617<?xml version =" 1.0" encoding =" utf-8" ?>
1718<?xml -stylesheet href =" pretty-atom-feed.xsl" type =" text/xsl" ?>
1819<feed xmlns =" http://www.w3.org/2005/Atom" xml:base =" {{ link.website }}" >
2930<email >{{ metadata .author .email }} </email >
3031</author >
3132{%- for post in collections .post | reverse %}
32- {%- set absolutePostUrl = post .url | absoluteUrl (link .website ) %}
33- <entry >
34- <title >{{ post .data .title }} </title >
35- <link href =" {{ absolutePostUrl }}" />
36- <updated >{{ post .date | dateToRfc3339 }} </updated >
37- <id >{{ absolutePostUrl }} </id >
38- <content xml:lang =" {{ metadata.language }}" type =" html" >
39- {%- set templateContent = post .templateContent | htmlToAbsoluteUrls (absolutePostUrl ) %}
40- {{ templateContent }}
41- </content >
42- </entry >
33+ {% if not post .data .draft %}
34+ {%- set absolutePostUrl = post .url | absoluteUrl (link .website ) %}
35+ <entry >
36+ <title >{{ post .data .title }} </title >
37+ <link href =" {{ absolutePostUrl }}" />
38+ <updated >{{ post .date | dateToRfc3339 }} </updated >
39+ <id >{{ absolutePostUrl }} </id >
40+ <content xml:lang =" {{ metadata.language }}" type =" html" >
41+ {%- set templateContent = post .templateContent | htmlToAbsoluteUrls (absolutePostUrl ) %}
42+ {{ templateContent }}
43+ </content >
44+ </entry >
45+ {% endif %}
4346{%- endfor %}
4447</feed >
You can’t perform that action at this time.
0 commit comments