forked from whatyouhide/whatyouhide.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Community XML feed (whatyouhide#4)
- Loading branch information
1 parent
1b6c80e
commit 6841fbf
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,11 @@ avatar_url: https://www.gravatar.com/avatar/faafc04d9e69b73b9f49995fd4c94d4d?s=5 | |
url: https://andrealeopardi.com | ||
baseurl: "" | ||
|
||
# Owner information. | ||
owner: | ||
name: Andrea Leopardi | ||
email: [email protected] | ||
|
||
## Build configuration. | ||
|
||
markdown: kramdown | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
layout: null | ||
--- | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"> | ||
<title type="text">{{ site.name | xml_escape }} - Community</title> | ||
<generator uri="https://github.com/mojombo/jekyll">Jekyll</generator> | ||
<link rel="self" type="application/rss+xml" href="{{ site.url }}/feed.xml" /> | ||
<link rel="alternate" type="text/html" href="{{ site.url }}" /> | ||
<updated>{{ site.time | date_to_xmlschema }}</updated> | ||
<id>{{ site.url }}/</id> | ||
<author> | ||
<name>{{ site.owner.name }}</name> | ||
<uri>{{ site.url }}/</uri> | ||
<email>{{ site.owner.email }}</email> | ||
</author> | ||
{% for post in site.posts %} | ||
{% if post.tags contains 'community' %} | ||
<entry> | ||
<title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title> | ||
<link rel="alternate" type="text/html" href="{{ site.url }}{{ post.url }}" /> | ||
<id>{{ site.url }}{{ post.id }}</id> | ||
{% if post.modified %}<updated>{{ post.modified | to_xmlschema }}T00:00:00-00:00</updated> | ||
<published>{{ post.date | date_to_xmlschema }}</published> | ||
{% else %}<published>{{ post.date | date_to_xmlschema }}</published> | ||
<updated>{{ post.date | date_to_xmlschema }}</updated>{% endif %} | ||
<author> | ||
<name>{{ site.owner.name }}</name> | ||
<uri>{{ site.url }}</uri> | ||
<email>{{ site.owner.email }}</email> | ||
</author> | ||
<content type="html">{{ post.content | xml_escape }} | ||
<p><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a> was originally published by {{ site.owner.name }} at <a href="{{ site.url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p></content> | ||
</entry> | ||
{% endif %} | ||
{% endfor %} | ||
</feed> |