From 987f5410132dceb6468a819be488df9fb5d23296 Mon Sep 17 00:00:00 2001 From: juego Date: Wed, 14 May 2014 23:28:46 +0200 Subject: [PATCH] protocol agnostic url --- _config.yml | 29 +++++++++++++++-------------- feed.xml | 9 +++------ 2 files changed, 18 insertions(+), 20 deletions(-) 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 8958714..dda7909 100644 --- a/feed.xml +++ b/feed.xml @@ -3,15 +3,12 @@ layout: none --- -{% if site.url != '' and - site.url | split: '/' | first != 'http:' and - site.url | split: '/' | first != 'https:' -%} +{% if site.url != '' and site.url | split: '/' | first != 'http:' and site.url | split: '/' | first != 'https:' %} {% assign site_url = site.url | prepend: 'http:' %} - {% post_content = post.content | xml_escape | replace: site.url, url %} + {% assign post_content = post.content | xml_escape | replace: site.url, url %} {% else %} {% assign site_url = site.url %} - {% post_content = post.content | xml_escape %} + {% assign post_content = post.content | xml_escape %} {% endif %} {{ site.title }} Jekyll