From 853492596dd78dedb755e66db8d79d01e13c66b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20de=20Pr=C3=A1?= Date: Fri, 23 Mar 2018 14:28:38 -0300 Subject: Fix template to suport empty social parameter --- layouts/partials/header.html | 4 ++-- layouts/partials/home.html | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 34fd729..1a2ae40 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,7 +3,7 @@ {{ .Site.Title }} - {{with .Site.Menus.main}} + {{ with .Site.Menus.main }} - {{end}} + {{ end }} diff --git a/layouts/partials/home.html b/layouts/partials/home.html index 6c44ae0..e497537 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -2,10 +2,12 @@

{{ .Site.Params.author }}

{{ .Site.Params.info }}

+ {{ with .Site.Params.social }} + {{ end }}
-- cgit v1.2.3