mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Add site-wide/per-page [blackfriday] extensions
option
This commit is contained in:
@@ -187,9 +187,9 @@ func (s *SiteInfo) refLink(ref string, page *Page, relative bool) (string, error
|
||||
if refUrl.Fragment != "" {
|
||||
link = link + "#" + refUrl.Fragment
|
||||
|
||||
if refUrl.Path != "" && target != nil && !target.isRenderingFlagEnabled("plainIdAnchors") {
|
||||
if refUrl.Path != "" && target != nil && !target.getRenderingConfig().PlainIdAnchors {
|
||||
link = link + ":" + target.UniqueId()
|
||||
} else if page != nil && !page.isRenderingFlagEnabled("plainIdAnchors") {
|
||||
} else if page != nil && !page.getRenderingConfig().PlainIdAnchors {
|
||||
link = link + ":" + page.UniqueId()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user