diff --git a/_config.yml b/_config.yml index 78ba635..3794e3f 100644 --- a/_config.yml +++ b/_config.yml @@ -1,9 +1,10 @@ title: Site Title description: Describe your website here. logo: site-logo.png -disqus_shortname: +disqus_shortname: search: true # Change url to your domain. Leave localhost server or blank when working locally. +# You don't need to specify the protocol if you want it available on http and https. Example: //localhost:4000 url: http://localhost:4000 # Owner/author information @@ -12,22 +13,22 @@ owner: avatar: bio-photo.jpg email: you@email.com # Social networking links used in footer. Update and remove as you like. - twitter: - facebook: - github: - stackexchange: - linkedin: - instagram: - flickr: - tumblr: + twitter: + facebook: + github: + stackexchange: + linkedin: + instagram: + flickr: + tumblr: # For Google Authorship https://plus.google.com/authorship - google_plus: + google_plus: # Analytics and webmaster tools stuff goes here -google_analytics: -google_verify: +google_analytics: +google_verify: # https://ssl.bing.com/webmaster/configure/verify/ownership Option 2 content= goes here -bing_verify: +bing_verify: # Links to include in top navigation # For external links add external: true @@ -59,7 +60,7 @@ kramdown: use_coderay: false coderay: - coderay_line_numbers: + coderay_line_numbers: coderay_line_numbers_start: 1 coderay_tab_width: 4 coderay_bold_every: 10 diff --git a/feed.xml b/feed.xml index b880dc2..9a2595d 100644 --- a/feed.xml +++ b/feed.xml @@ -3,35 +3,48 @@ layout: none --- +{% assign add_protocol = false %} +{% assign protocol = site.url | split: '/' | first %} +{% if site.url != '' and protocol != 'http:' and protocol != 'https:' %} + {% assign site_url = site.url | prepend: 'http:' %} + {% assign add_protocol = true %} +{% else %} + {% assign site_url = site.url %} +{% endif %} {{ site.title }} Jekyll - - + + {{ site.time | date_to_xmlschema }} -{{ site.url }}/ +{{ site_url }}/ {{ site.owner.name }} - {{ site.url }}/ + {{ site_url }}/ {{ site.owner.email }} {% for post in site.posts limit:20 %} <![CDATA[{{ post.title | cdata_escape }}]]> - - {{ site.url }}{{ post.id }} + + {{ site_url }}{{ post.id }} {% if post.modified %}{{ post.modified | to_xmlschema }}T00:00:00-00:00 {{ post.date | date_to_xmlschema }} {% else %}{{ post.date | date_to_xmlschema }} {{ post.date | date_to_xmlschema }}{% endif %} {{ site.owner.name }} - {{ site.url }} + {{ site_url }} {{ site.owner.email }} - {% for tag in post.tags %}{% endfor %} - {{ 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> + {% for tag in post.tags %}{% endfor %} + + {% if add_protocol %} + {{ post.content | xml_escape | replace: site.url, site_url }} + {% else %} + {{ post.content | xml_escape }} + {% endif %} + <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> {% endfor %}