aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer.html6
-rw-r--r--layouts/partials/header.html2
-rw-r--r--layouts/partials/slideout.html2
3 files changed, 3 insertions, 7 deletions
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" }}
- <a href="mailto:{{ $path }}" class="iconfont icon-{{ $realName }}" title="{{ $realName }}"></a>
- {{- else }}
- <a href="{{ $path }}" class="iconfont icon-{{ $realName }}" title="{{ $realName }}"></a>
- {{- end }}
+ <a href="{{ $path | safeURL }}" class="iconfont icon-{{ $realName }}" title="{{ $realName }}"></a>
{{- end }}
{{- end }}
<a href="{{ .Site.RSSLink }}" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
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 @@
<ul id="menu" class="menu">
{{ range .Site.Menus.main -}}
<li class="menu-item">
- <a class="menu-item-link" href="{{ .URL }}">{{ .Name }}</a>
+ <a class="menu-item-link" href="{{ .URL | safeURL }}">{{ .Name }}</a>
</li>
{{- end }}
</ul>
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 @@
<nav id="mobile-menu" class="mobile-menu slideout-menu">
<ul class="mobile-menu-list">
{{ range .Site.Menus.main -}}
- <a href="{{ .URL }}">
+ <a href="{{ .URL | safeURL }}">
<li class="mobile-menu-item">{{ .Name }}</li>
</a>
{{- end }}