From e7b2132fe17c937ebcb7ee2394cf66ce7726887e Mon Sep 17 00:00:00 2001
From: Felix Boerner <ich@felix-boerner.de>
Date: Fri, 25 May 2018 17:19:35 +0000
Subject: [PATCH] feat: change title behaviour

---
 layouts/partials/head.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d35f20f..3782f6a 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -2,14 +2,14 @@
 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
 
 <!-- SEO -->
-<title>{{ .Title }}</title>
+<title>{{ if .IsPage }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
 {{ with .Site.Params.author }}<meta name="author" content="{{ . }}" />{{ end }}
 {{ with .Site.Params.description }}<meta name="description" content="{{ . }}" />{{ end }}
 <meta name="robots" content="index, follow" />
 <meta name="referrer" content="always" />
 
 <!-- Social & Open Graph -->
-<meta property="og:title" content="{{ .Title }}" />
+<meta property="og:title" content="{{ if .IsPage }}{{ .Title }} - {{ end }}{{ .Site.Title }}" />
 {{ with .Site.Params.description }}<meta property="og:description" content="{{ . }}" />{{ end }}
 <meta property="og:url" content="{{ .Site.BaseURL }}" />
 {{ with .Site.Params.shareImage }}

--
Gitblit v1.10.0