mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-18 15:43:49 +00:00
tpl: Fix faulty ordering of relURL test cases
This commit is contained in:
parent
88dcbc6efa
commit
09612f7af8
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ readDir: {{ range (readDir ".") }}{{ .Name }}{{ end }}
|
||||||
readFile: {{ readFile "README.txt" }}
|
readFile: {{ readFile "README.txt" }}
|
||||||
relURL 1: {{ "http://gohugo.io/" | relURL }}
|
relURL 1: {{ "http://gohugo.io/" | relURL }}
|
||||||
relURL 2: {{ "mystyle.css" | relURL }}
|
relURL 2: {{ "mystyle.css" | relURL }}
|
||||||
relURL 2: {{ mul 2 21 | relURL }}
|
relURL 3: {{ mul 2 21 | relURL }}
|
||||||
replace: {{ replace "Batman and Robin" "Robin" "Catwoman" }}
|
replace: {{ replace "Batman and Robin" "Robin" "Catwoman" }}
|
||||||
replaceRE: {{ "http://gohugo.io/docs" | replaceRE "^https?://([^/]+).*" "$1" }}
|
replaceRE: {{ "http://gohugo.io/docs" | replaceRE "^https?://([^/]+).*" "$1" }}
|
||||||
safeCSS: {{ "Bat&Man" | safeCSS | safeCSS }}
|
safeCSS: {{ "Bat&Man" | safeCSS | safeCSS }}
|
||||||
|
@ -188,7 +188,7 @@ readDir: README.txt
|
||||||
readFile: Hugo Rocks!
|
readFile: Hugo Rocks!
|
||||||
relURL 1: http://gohugo.io/
|
relURL 1: http://gohugo.io/
|
||||||
relURL 2: /hugo/mystyle.css
|
relURL 2: /hugo/mystyle.css
|
||||||
relURL 2: /hugo/42
|
relURL 3: /hugo/42
|
||||||
replace: Batman and Catwoman
|
replace: Batman and Catwoman
|
||||||
replaceRE: gohugo.io
|
replaceRE: gohugo.io
|
||||||
safeCSS: Bat&Man
|
safeCSS: Bat&Man
|
||||||
|
|
Loading…
Reference in a new issue