summaryrefslogtreecommitdiffstats
path: root/blog
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-08-25 15:12:12 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-08-25 15:12:12 +0200
commitdff0783132f7a2ba7cd4005a15fc639615a7d239 (patch)
treed27336cae5e2c4c239a915f861f4a8edf5663b31 /blog
parentac581fe31d5f6d72d45bdfa2e21df451015f22f5 (diff)
downloadnorsk-urskog-main-dff0783132f7a2ba7cd4005a15fc639615a7d239.tar.gz
norsk-urskog-main-dff0783132f7a2ba7cd4005a15fc639615a7d239.tar.bz2
norsk-urskog-main-dff0783132f7a2ba7cd4005a15fc639615a7d239.zip
Fix stylesheets and templates to use jekyll-assets.
Diffstat (limited to 'blog')
-rw-r--r--blog/_assets/stylesheets/main.scss5
-rw-r--r--blog/_includes/head.html4
-rw-r--r--blog/_includes/header.html2
3 files changed, 4 insertions, 7 deletions
diff --git a/blog/_assets/stylesheets/main.scss b/blog/_assets/stylesheets/main.scss
index a6abce1..fc6fb42 100644
--- a/blog/_assets/stylesheets/main.scss
+++ b/blog/_assets/stylesheets/main.scss
@@ -1,6 +1,3 @@
----
-# Only the main Sass file needs front matter (the dashes are enough)
----
@import "config";
@import "common";
@import "header";
@@ -12,7 +9,7 @@ body {
line-height: 135%;
background: {
- image: url({{ "/assets/images/background.jpg" | prepend: site.baseurl_root }});
+ image: image_url("background.jpg");
repeat: no-repeat;
position: center top;
color: black;
diff --git a/blog/_includes/head.html b/blog/_includes/head.html
index 93f1512..1d66aa8 100644
--- a/blog/_includes/head.html
+++ b/blog/_includes/head.html
@@ -9,6 +9,6 @@
{% endif %}
</title>
<meta name="description" content="{{ site.description }}">
- <link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl_root }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl_root | prepend: site.url }}">
- </head>
+ {% stylesheet main %}
+</head>
diff --git a/blog/_includes/header.html b/blog/_includes/header.html
index c873fb1..6813c67 100644
--- a/blog/_includes/header.html
+++ b/blog/_includes/header.html
@@ -1,6 +1,6 @@
<header id="header">
<div id="logo">
- <img src="{{ '/assets/images/header.png' | prepend: site.baseurl_root }}" alt="Norsk Urskog">
+ {% image header.png alt="Norsk Urskog" %}
<p>Norwegian Underground Metal Sampler</p>
</div>
<div id="banner-pos-1">