diff --git a/_config.yml b/_config.yml index 1f2484b1b3..3dbe467412 100644 --- a/_config.yml +++ b/_config.yml @@ -55,6 +55,8 @@ stackoverflow_url: pinterest_url: slack_url: dribbble_url: +# The full url of your site with "/feed.xml", e.g. https://mydomain.me/feed.xml +rss_url: # Google Analytics Tracking ID goes here: google_analytics: diff --git a/_includes/social_icons.html b/_includes/social_icons.html index a4b4ed75ba..c9dcc349db 100644 --- a/_includes/social_icons.html +++ b/_includes/social_icons.html @@ -33,4 +33,7 @@ {%- if site.email -%}
  • Email
  • {%- endif -%} + {%- if site.rss_url -%} +
  • RSS
  • + {%- endif -%} diff --git a/feed.xml b/feed.xml new file mode 100644 index 0000000000..d025a059f6 --- /dev/null +++ b/feed.xml @@ -0,0 +1,22 @@ +--- +layout: none +--- + + + + + {{ site.name | xml_escape }} + {{ site.description | xml_escape }} + {{ site.url }} + + {% for post in site.posts limit:10 %} + + {{ post.title | xml_escape }} + {{ post.content | xml_escape }} + {{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }} + {{ site.url }}/{{ post.url }} + {{ site.url }}/{{ post.url }} + + {% endfor %} + + \ No newline at end of file