mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 16:14:59 +00:00
1 parent
5cff3e6219
commit
82fdfa2c72
1 file changed
+5
@@ -143,6 +143,11 @@ func Tokenize(in string) interface{} {
|
|||||||
for i, v := range first {
|
for i, v := range first {
|
||||||
index := strings.Index(v, "=")
|
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 !inQuote {
|
||||||
if index > 1 {
|
if index > 1 {
|
||||||
keys = append(keys, v[:index])
|
keys = append(keys, v[:index])
|
||||||
|
|||||||
Reference in new issue
Block a user