mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
5cff3e6219
commit
82fdfa2c72
1 changed files with 5 additions and 0 deletions
|
@ -143,6 +143,11 @@ func Tokenize(in string) interface{} {
|
|||
for i, v := range first {
|
||||
index := strings.Index(v, "=")
|
||||
|
||||
if index < 0 {
|
||||
fmt.Printf("Shortcode parameters must be key=value pairs (no spaces) (saw '%s')\n", v)
|
||||
continue
|
||||
}
|
||||
|
||||
if !inQuote {
|
||||
if index > 1 {
|
||||
keys = append(keys, v[:index])
|
||||
|
|
Loading…
Reference in a new issue