mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
tpl/tplimpl: Deprecate twitter shortcode in favor of x shortcode
Closes #13214
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
60c24fc5ee
commit
1191467c05
@@ -66,6 +66,8 @@ const (
|
||||
// We need this to identify position in templates with base templates applied.
|
||||
var identifiersRe = regexp.MustCompile(`at \<(.*?)(\.{3})?\>:`)
|
||||
|
||||
// The tweet and twitter shortcodes were deprecated in favor of the x shortcode
|
||||
// in v0.141.0. We can remove these aliases in v0.155.0 or later.
|
||||
var embeddedTemplatesAliases = map[string][]string{
|
||||
"shortcodes/twitter.html": {"shortcodes/tweet.html"},
|
||||
}
|
||||
|
Reference in New Issue
Block a user