|
| 1 | +--- |
| 2 | +layout: none |
| 3 | +--- |
| 4 | + |
| 5 | +<?xml version="1.0" encoding="utf-8"?> |
| 6 | +<feed xmlns="http://www.w3.org/2005/Atom" {% if site.lang %}xml:lang="{{ site.lang }}"{% endif %}> |
| 7 | + <generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator> |
| 8 | + <link href="{{ site.url }}{{ page.url }}" rel="self" type="application/atom+xml" /> |
| 9 | + <link href="{{ site.url }}" rel="alternate" type="text/html" {% if site.lang %}hreflang="{{ site.lang }}" {% endif %}/> |
| 10 | + <updated>{{ site.time | date_to_xmlschema }}</updated> |
| 11 | + <id>{{ site.url | xml_escape }}</id> |
| 12 | + |
| 13 | + {% if site.title %} |
| 14 | + <title type="html">{{ site.title | smartify | xml_escape }}</title> |
| 15 | + {% elsif site.name %} |
| 16 | + <title type="html">{{ site.name | smartify | xml_escape }}</title> |
| 17 | + {% endif %} |
| 18 | + |
| 19 | + {% if site.description %} |
| 20 | + <subtitle>{{ site.description | xml_escape }}</subtitle> |
| 21 | + {% endif %} |
| 22 | + |
| 23 | + {% if site.author %} |
| 24 | + <author> |
| 25 | + <name>{{ site.author.name | default: site.author | xml_escape }}</name> |
| 26 | + {% if site.author.email %} |
| 27 | + <email>{{ site.author.email | xml_escape }}</email> |
| 28 | + {% endif %} |
| 29 | + {% if site.author.uri %} |
| 30 | + <uri>{{ site.author.uri | xml_escape }}</uri> |
| 31 | + {% endif %} |
| 32 | + </author> |
| 33 | + {% endif %} |
| 34 | + |
| 35 | + {% assign posts = site.posts | where_exp: "post", "post.draft != true" | where_exp: "post", "post.categories contains 'dotnet'" %} |
| 36 | + {% for post in posts %} |
| 37 | + |
| 38 | + {% assign post_author = post.author | default: post.authors[0] | default: site.author %} |
| 39 | + {% assign post_author = site.data.authors[post_author] | default: post_author %} |
| 40 | + {% assign post_author_email = post_author.email | default: nil %} |
| 41 | + {% assign post_author_uri = post_author.uri | default: nil %} |
| 42 | + {% assign post_author_name = post_author.name | default: post_author %} |
| 43 | + |
| 44 | + <entry{% if post.lang %}{{" "}}xml:lang="{{ post.lang }}"{% endif %}> |
| 45 | + <title type="html">{{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title> |
| 46 | + <link href="{{ site.url }}{{ post.url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" /> |
| 47 | + <published>{{ post.date | date_to_xmlschema }}</published> |
| 48 | + <updated>{{ post.date | date_to_xmlschema }}</updated> |
| 49 | + <id>{{ site.url | xml_escape }}{{ post.url | xml_escape}}</id> |
| 50 | + <content type="html" xml:base="{{ site.url | xml_escape }}{{ post.url | xml_escape}}">{{ post.content | strip | xml_escape }}</content> |
| 51 | + |
| 52 | + <author> |
| 53 | + <name>Calvin A. Allen</name> |
| 54 | + </author> |
| 55 | + |
| 56 | + {% for category in post.categories %} |
| 57 | + <category term="{{ category | xml_escape }}" /> |
| 58 | + {% endfor %} |
| 59 | + |
| 60 | + {% for tag in post.tags %} |
| 61 | + <category term="{{ tag | xml_escape }}" /> |
| 62 | + {% endfor %} |
| 63 | + |
| 64 | + {% if post.description and post.description != empty %} |
| 65 | + <summary type="html">{{ post.description | strip_html | normalize_whitespace | xml_escape }}</summary> |
| 66 | + {% elsif post.excerpt and post.excerpt != empty %} |
| 67 | + <summary type="html">{{ post.excerpt | strip_html | normalize_whitespace | xml_escape }}</summary> |
| 68 | + {% endif %} |
| 69 | + |
| 70 | + {% assign post_path = site.source | append: '/' | append: post.path %} |
| 71 | + {% capture cover_image_exists %}{% cover_exists {{ post_path }},{{ post.image }} %}{% endcapture %} |
| 72 | + {% capture alt_cover_image_exists %}{% cover_exists {{ post_path }},{{ post.image_alt }} %}{% endcapture %} |
| 73 | + |
| 74 | + {% if post.image and cover_image_exists == "true" %} |
| 75 | + <media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="{{ site.url }}{{ post.url }}{{ post.image }}" /> |
| 76 | + {% elsif post.image_alt and alt_cover_image_exists == "true" %} |
| 77 | + <media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="{{ site.url }}{{ post.url }}{{ post.image_alt }}" /> |
| 78 | + {% else %} |
| 79 | + <media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="{{ site.url }}/images/social/headshot-cover.png" /> |
| 80 | + {% endif %} |
| 81 | + </entry> |
| 82 | + {% endfor %} |
| 83 | +</feed> |
0 commit comments