mirror of https://github.com/escalate/hugo-split-theme.git

Felix Boerner
22.05.2022 b4bbd943ffd7bfeb7d8000879850c06509fb8b23
fix: add function to prevent unsafe urls

Closes #14
1 files modified
2 ■■■ changed files
layouts/partials/links.html 2 ●●● patch | view | raw | blame | history
layouts/partials/links.html
@@ -8,7 +8,7 @@
        <h3>{{ $list.heading }}</h3>
        <ul>
          {{ range $list.link }}
            <li><a href="{{ .url }}" title="{{ .text }}">{{ .text }}</a></li>
            <li><a href="{{ .url | safeURL }}" title="{{ .text }}">{{ .text }}</a></li>
          {{ end }}
        </ul>
      </div>