diff --git a/render.go b/render.go
index 7c27b3b..417450a 100644
--- a/render.go
+++ b/render.go
@@ -77,6 +77,12 @@ func initRendering() error {
},
"urlize": urlize,
"sort": sortedStrings,
+ "blogRelative": func(blog *configBlog, path string) string {
+ if blog.Path != "/" {
+ return blog.Path + path
+ }
+ return path
+ },
}
templates = make(map[string]*template.Template)
diff --git a/templates/header.gohtml b/templates/header.gohtml
index ba9d9a5..c100edb 100644
--- a/templates/header.gohtml
+++ b/templates/header.gohtml
@@ -1,6 +1,6 @@
{{ define "header" }}
{{ . }}{{ .Blog.Title }}
+ {{ .Blog.Title }}
{{ with .Blog.Description }}
In {{ $tax.Title }}: {{ range $j, $tv := $tvs }} - {{ $tv }} + {{ $tv }} {{ end }}
{{ end }} diff --git a/templates/taxonomy.gohtml b/templates/taxonomy.gohtml index db2aebf..b08e5e8 100644 --- a/templates/taxonomy.gohtml +++ b/templates/taxonomy.gohtml @@ -7,9 +7,10 @@ {{ with .Data.Taxonomy.Title }}