Make it possible to configure Blackfroday per language

See #2309
This commit is contained in:
Bjørn Erik Pedersen 2016-08-07 14:03:03 +02:00
parent 596e0e98e4
commit 2079a23dd8
21 changed files with 324 additions and 189 deletions

View file

@ -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)