mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-31 22:41:53 +02:00
Allow markdown attribute lists to be used in title render hooks
Fixes #8270
This commit is contained in:
@@ -19,6 +19,10 @@ import (
|
||||
"github.com/gohugoio/hugo/identity"
|
||||
)
|
||||
|
||||
type AttributesProvider interface {
|
||||
Attributes() map[string]string
|
||||
}
|
||||
|
||||
type LinkContext interface {
|
||||
Page() interface{}
|
||||
Destination() string
|
||||
@@ -45,6 +49,9 @@ type HeadingContext interface {
|
||||
Text() string
|
||||
// PlainText is the unrendered version of Text.
|
||||
PlainText() string
|
||||
|
||||
// Attributes (e.g. CSS classes)
|
||||
AttributesProvider
|
||||
}
|
||||
|
||||
// HeadingRenderer describes a uniquely identifiable rendering hook.
|
||||
|
Reference in New Issue
Block a user