mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 06:17:45 +00:00
Clarify the true behavior of hrefTargetBlank #blackfriday
Fixes https://github.com/gohugoio/hugoDocs/issues/428 Ref: https://discourse.gohugo.io/t/internal-links-in-same-tab-external-links-in-new-tab/11048/8?u=kaushalmodi
This commit is contained in:
1 parent
eb3aa5e462
commit
820d8b5815
1 file changed
+1
-1
@@ -41,7 +41,7 @@
|
|||||||
`hrefTargetBlank`
|
`hrefTargetBlank`
|
||||||
: default: **`false`** <br>
|
: default: **`false`** <br>
|
||||||
Blackfriday flag: **`HTML_HREF_TARGET_BLANK`** <br>
|
Blackfriday flag: **`HTML_HREF_TARGET_BLANK`** <br>
|
||||||
Purpose: `true` opens external links in a new window or tab.
|
Purpose: `true` opens <s>external links</s> **absolute** links in a new window or tab. While the `target="_blank"` attribute is typically used for external links, Blackfriday does that for _all_ absolute links ([ref](https://discourse.gohugo.io/t/internal-links-in-same-tab-external-links-in-new-tab/11048/8)). One needs to make note of this if they use absolute links throughout, for internal links too (for example, by setting `canonifyURLs` to `true` or via `absURL`).
|
||||||
|
|
||||||
`plainIDAnchors`
|
`plainIDAnchors`
|
||||||
: default **`true`** <br>
|
: default **`true`** <br>
|
||||||
|
|||||||
Reference in new issue
Block a user