From df7f7d6cf3072b9f2941c45c2995343373b0d1e5 Mon Sep 17 00:00:00 2001 From: Keichi Takahashi Date: Tue, 3 Feb 2015 23:53:05 +0900 Subject: [PATCH] Add OGP tags --- layouts/partials/header.html | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8c04f76..035fae6 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,17 +1,26 @@ - - - - + + + + + + {{ if .IsPage }} + + {{ with .Site.Params.facebook }} + + {{ end }} + + {{ range .Params.tags }} + + {{ end }} + {{ else }} + + {{ end }} - {{ if eq .Url "/" }} - {{ .Site.Title }} - {{ else }} - {{ .Title }} · {{ .Site.Title }} - {{ end }} + {{ if ne .Url "/" }} {{ .Title }} · {{ end }} {{ .Site.Title }}