Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-08-13 01:36:15 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-08-13 01:36:15 +0300
commit09612f7af8950b40ba90f4263f4abb431dae65b1 (patch)
tree8a3add358a4b62098bd6d8cef8502578295334d0 /tpl
parent88dcbc6efa419c97e95b7a05991d431d9c6b87a7 (diff)
tpl: Fix faulty ordering of relURL test cases
Diffstat (limited to 'tpl')
-rw-r--r--tpl/template_funcs_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/template_funcs_test.go b/tpl/template_funcs_test.go
index 38a94a113..92af921d1 100644
--- a/tpl/template_funcs_test.go
+++ b/tpl/template_funcs_test.go
@@ -122,7 +122,7 @@ readDir: {{ range (readDir ".") }}{{ .Name }}{{ end }}
readFile: {{ readFile "README.txt" }}
relURL 1: {{ "http://gohugo.io/" | 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" }}
replaceRE: {{ "http://gohugo.io/docs" | replaceRE "^https?://([^/]+).*" "$1" }}
safeCSS: {{ "Bat&Man" | safeCSS | safeCSS }}
@@ -188,7 +188,7 @@ readDir: README.txt
readFile: Hugo Rocks!
relURL 1: http://gohugo.io/
relURL 2: /hugo/mystyle.css
-relURL 2: /hugo/42
+relURL 3: /hugo/42
replace: Batman and Catwoman
replaceRE: gohugo.io
safeCSS: Bat&amp;Man