From 8ab0c5c9e0afa98b9af0a407c10685e2d4bbfa7e Mon Sep 17 00:00:00 2001 From: Veikka Kähkönen Date: Tue, 29 Aug 2017 23:05:32 +0300 Subject: Add baseurl support --- _config.yml | 1 + _includes/footer.html | 6 +++--- _includes/head.html | 8 ++++---- _includes/header.html | 4 ++-- _layouts/default.html | 2 ++ 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/_config.yml b/_config.yml index d9a992f..568224a 100644 --- a/_config.yml +++ b/_config.yml @@ -11,6 +11,7 @@ email: hallitus@as.fi description: > # this means to ignore newlines until "baseurl:" hilipatipimppa url: "http://as.fi" # the base hostname & protocol for your site +baseurl: '' # Build settings markdown: kramdown diff --git a/_includes/footer.html b/_includes/footer.html index 35eed2f..f3b6822 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -5,9 +5,9 @@ diff --git a/_includes/head.html b/_includes/head.html index f62ab63..2fdb64b 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,8 +4,8 @@ {% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %} - - - - + + + + diff --git a/_includes/header.html b/_includes/header.html index 2c18219..0a5cdbd 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -18,7 +18,7 @@ {% assign current_page = false %} {% endif %} {% if current_page and item.subnavi %} {% assign subnavi = item.subnavi %} @@ -32,7 +32,7 @@ diff --git a/_layouts/default.html b/_layouts/default.html index e4ab96f..9081473 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,6 +1,8 @@ + {% assign site_full_url = site.url | append: site.baseurl %} + {% include head.html %} -- cgit v1.3