mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
1 parent
44edd9382a
commit
714d4a9a97
1 file changed
+2
-1
@@ -18,6 +18,7 @@ import (
|
|||||||
"html/template"
|
"html/template"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@@ -48,7 +49,7 @@ func doTestShortcodeCrossrefs(t *testing.T, relative bool) {
|
|||||||
expectedBase = baseURL
|
expectedBase = baseURL
|
||||||
}
|
}
|
||||||
|
|
||||||
path := "blog/post.md"
|
path := filepath.FromSlash("blog/post.md")
|
||||||
in := fmt.Sprintf(`{{< %s "%s" >}}`, refShortcode, path)
|
in := fmt.Sprintf(`{{< %s "%s" >}}`, refShortcode, path)
|
||||||
expected := fmt.Sprintf(`%s/simple/url/`, expectedBase)
|
expected := fmt.Sprintf(`%s/simple/url/`, expectedBase)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user