Skip to content

Commit

Permalink
Allow mailto link as menu link
Browse files Browse the repository at this point in the history
Fixes #208
  • Loading branch information
kakawait committed Aug 26, 2018
1 parent d87935e commit a20af6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/menu.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ range .menu }}
<li class="sidebar-button">
{{ if and (in .URL "://") (not (in .URL (printf "%s" $.root.Site.BaseURL))) }}
{{ if and (or (in .URL "://") (in .URL "mailto:")) (not (in .URL (printf "%s" $.root.Site.BaseURL))) }}
<a class="sidebar-button-link {{ if eq .Identifier "search" }}open-algolia-search{{ end }}" href="{{ .URL | safeURL }}" target="_blank" rel="noopener">
{{ else }}
<a class="sidebar-button-link {{ if eq .Identifier "search" }}open-algolia-search{{ end }}" href="{{ .URL | relLangURL }}">
Expand Down

0 comments on commit a20af6c

Please sign in to comment.