mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 22:14:08 +00:00
feat: add Markdown render hook to parse links
Adds support for opening external links in new tabs in Hugo v0.62+. BREAKING CHANGE: Requires Hugo v0.62 See #1514
This commit is contained in:
1 parent
d995e4d14d
commit
db716b2349
3 files changed
+4
-2
No files matched your search
@@ -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>
|
||||
+1
-1
@@ -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]
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user