summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-08-05 21:31:14 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-08-05 21:31:14 +0200
commitc7d8550200def3010404e8cefcc4221695e7f83d (patch)
treee04e5b13204dc68a8aa2048e6b07afdb4a3a8f3c
parentd63bb00c57a8f6c4c85a8fccd3ac6eff8b3f9b3b (diff)
downloadnorsk-urskog-main-c7d8550200def3010404e8cefcc4221695e7f83d.tar.gz
norsk-urskog-main-c7d8550200def3010404e8cefcc4221695e7f83d.tar.bz2
norsk-urskog-main-c7d8550200def3010404e8cefcc4221695e7f83d.zip
Set site title properly for each page.
-rw-r--r--blog/_config.yml1
-rw-r--r--blog/_includes/head.html2
-rw-r--r--blog/index.html2
3 files changed, 4 insertions, 1 deletions
diff --git a/blog/_config.yml b/blog/_config.yml
index b4b5398..73cb084 100644
--- a/blog/_config.yml
+++ b/blog/_config.yml
@@ -1,6 +1,7 @@
---
languages: ["nb", "en"]
exclude_from_localizations: ["assets", "css"]
+title: Norsk Urskog
defaults:
-
scope:
diff --git a/blog/_includes/head.html b/blog/_includes/head.html
index 0c79c74..4a7c430 100644
--- a/blog/_includes/head.html
+++ b/blog/_includes/head.html
@@ -2,7 +2,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
+ <title>{{ site.title }}{% if page.title %} - {% t page.title %}{% 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 }}">
diff --git a/blog/index.html b/blog/index.html
index 7ebe8b7..512e009 100644
--- a/blog/index.html
+++ b/blog/index.html
@@ -1,5 +1,7 @@
---
layout: default
+title: titles.home
+hidden: true
---
{% tf home/intro.md %}