msfjarvis.dev/themes/codex/layouts/_default/_markup/render-link.html
Harsh Shandilya 7552259973 Merge branch 'master' of github.com:jakewies/hugo-theme-codex into src
* 'master' of github.com:jakewies/hugo-theme-codex:
  fix: toc overflow caused by improper css solution
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  docs: update .all-contributorsrc [skip ci]
  docs: update README.md [skip ci]
  Extract favicon into a partial
  Add rel-me to social links
  Fix browse-by-tag link
  layouts: Add markdown render hook to open links in new tab
  Update post-pagination.html
2020-10-19 00:40:08 +05:30

5 lines
288 B
HTML

<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}" {{ end }}
{{ if strings.HasPrefix .Destination "mailto" }} target="_blank" {{ end }}
{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer noopener" {{ end }}
>{{ .Text | safeHTML }}</a>