Adds support for opening external links in new tabs in Hugo v0.62+. BREAKING CHANGE: Requires Hugo v0.62 See #1514
@@ -0,0 +1,2 @@
+{{/* A Hugo Markdown render hook to parse links, opening external links in new tabs. */}}
+<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
@@ -5,7 +5,7 @@
[build.environment]
HUGO_THEME = "repo"
- HUGO_VERSION = "0.60.1"
+ HUGO_VERSION = "0.62.2"
HUGO_ENABLEGITINFO = "true"
[context.production.environment]
@@ -3,7 +3,7 @@ license = "MIT"
licenselink = "https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md"
description = "The website builder for Hugo. Build *anything* with widgets and deploy with one click! Fully personalize your site with themes, plugins, and language packs."
homepage = "https://sourcethemes.com/academic/"
-min_version = "0.60"
+min_version = "0.62"
tags = ["widgets",
"resume",
"portfolio",