mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
Fix it so e.g. de in layouts/_shortcodes/de.html is not interpreted as a language code
Fixes #13740
This commit is contained in:
@@ -730,16 +730,16 @@ SHORTCODE
|
||||
b.Assert(err.Error(), qt.Contains, `no compatible template found for shortcode "mymarkdown" in [/_shortcodes/mymarkdown.md]; note that to use plain text template shortcodes in HTML you need to use the shortcode {{% delimiter`)
|
||||
}
|
||||
|
||||
func TestShortcodeOnlyLanguageInBaseIssue13699(t *testing.T) {
|
||||
func TestShortcodeOnlyLanguageInBaseIssue13699And13740(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
files := `
|
||||
-- hugo.toml --
|
||||
baseURL = 'https://example.org/'
|
||||
disableLanguages = ['de']
|
||||
[languages]
|
||||
[languages.en]
|
||||
weight = 1
|
||||
disableLanguages = ['de']
|
||||
[languages.de]
|
||||
weight = 2
|
||||
-- layouts/_shortcodes/de.html --
|
||||
|
Reference in New Issue
Block a user