mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
44edd9382a
commit
714d4a9a97
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ import (
|
|||
"html/template"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"testing"
|
||||
|
||||
|
@ -48,7 +49,7 @@ func doTestShortcodeCrossrefs(t *testing.T, relative bool) {
|
|||
expectedBase = baseURL
|
||||
}
|
||||
|
||||
path := "blog/post.md"
|
||||
path := filepath.FromSlash("blog/post.md")
|
||||
in := fmt.Sprintf(`{{< %s "%s" >}}`, refShortcode, path)
|
||||
expected := fmt.Sprintf(`%s/simple/url/`, expectedBase)
|
||||
|
||||
|
|
Loading…
Reference in a new issue