mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
parent
596e0e98e4
commit
2079a23dd8
21 changed files with 324 additions and 189 deletions
|
@ -15,7 +15,6 @@ package hugolib
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"html/template"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
@ -55,10 +54,9 @@ func doTestShortcodeCrossrefs(t *testing.T, relative bool) {
|
|||
|
||||
templ := tpl.New()
|
||||
p, _ := pageFromString(simplePageWithURL, path)
|
||||
p.Node.Site = &SiteInfo{
|
||||
rawAllPages: &(Pages{p}),
|
||||
BaseURL: template.URL(helpers.SanitizeURLKeepTrailingSlash(baseURL)),
|
||||
}
|
||||
p.Node.Site = newSiteInfoDefaultLanguage(
|
||||
helpers.SanitizeURLKeepTrailingSlash(baseURL),
|
||||
p)
|
||||
|
||||
output, err := HandleShortcodes(in, p, templ)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue