mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
tpl: Add hasPrefix to the template funcs' "smoke test"
This commit is contained in:
1 parent
4502c4e3ae
commit
80d02a14ab
1 file changed
+2
@@ -89,6 +89,7 @@ slicestr: {{slicestr "BatMan" 0 3}}
|
|||||||
substr: {{substr "BatMan" 0 -3}}
|
substr: {{substr "BatMan" 0 -3}}
|
||||||
substr: {{substr "BatMan" 3 3}}
|
substr: {{substr "BatMan" 3 3}}
|
||||||
title: {{title "Bat man"}}
|
title: {{title "Bat man"}}
|
||||||
|
hasPrefix: {{ hasPrefix "Hugo" "Hu" }}
|
||||||
trim: {{ trim "++Batman--" "+-" }}
|
trim: {{ trim "++Batman--" "+-" }}
|
||||||
upper: {{upper "BatMan"}}
|
upper: {{upper "BatMan"}}
|
||||||
absURL: {{ "mystyle.css" | absURL }}
|
absURL: {{ "mystyle.css" | absURL }}
|
||||||
@@ -135,6 +136,7 @@ slicestr: Bat
|
|||||||
substr: Bat
|
substr: Bat
|
||||||
substr: Man
|
substr: Man
|
||||||
title: Bat Man
|
title: Bat Man
|
||||||
|
hasPrefix: true
|
||||||
trim: Batman
|
trim: Batman
|
||||||
upper: BATMAN
|
upper: BATMAN
|
||||||
absURL: http://mysite.com/hugo/mystyle.css
|
absURL: http://mysite.com/hugo/mystyle.css
|
||||||
|
|||||||
Reference in new issue
Block a user