permalink now respects pretty urls

This commit is contained in:
spf13
2013-07-26 09:51:07 -04:00
parent d5f5543061
commit 92c31bbe10
2 changed files with 14 additions and 4 deletions

View File

@@ -48,6 +48,7 @@ type SiteInfo struct {
Recent *Pages
LastChange time.Time
Title string
Config *Config
}
func (s *Site) getFromIndex(kind string, name string) Pages {
@@ -166,7 +167,7 @@ func (s *Site) initialize() {
filepath.Walk(s.c.GetAbsPath(s.c.SourceDir), walker)
s.Info = SiteInfo{BaseUrl: template.URL(s.c.BaseUrl), Title: s.c.Title}
s.Info = SiteInfo{BaseUrl: template.URL(s.c.BaseUrl), Title: s.c.Title, Config: &s.c}
s.Shortcodes = make(map[string]ShortcodeFunc)
}