From 8384f0248367febcf961d2eb2d0c2adff5292d97 Mon Sep 17 00:00:00 2001 From: Simon Wörner Date: Thu, 14 Sep 2017 17:11:46 +0200 Subject: fix: allow all url protocols in social and menu links (#4) Adding "| safeURL" allows the usage of "unsafe" url protocols such as irc:// or xmpp:// --- layouts/partials/footer.html | 6 +----- layouts/partials/header.html | 2 +- layouts/partials/slideout.html | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4004d7b..7ce1aaf 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,11 +2,7 @@ {{- range $name, $path := .Site.Params.social }} {{- if $path }} {{- $realName := slicestr $name 2 }} - {{- if eq $realName "email" }} - - {{- else }} - - {{- end }} + {{- end }} {{- end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f41fdac..4cc13c8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,7 +6,7 @@ diff --git a/layouts/partials/slideout.html b/layouts/partials/slideout.html index 0ebf0c2..21de3cb 100644 --- a/layouts/partials/slideout.html +++ b/layouts/partials/slideout.html @@ -11,7 +11,7 @@