aboutsummaryrefslogtreecommitdiffstats
path: root/site.go
diff options
context:
space:
mode:
Diffstat (limited to 'site.go')
-rw-r--r--site.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/site.go b/site.go
index 8a9f08d..4050bf0 100644
--- a/site.go
+++ b/site.go
@@ -6,13 +6,13 @@ import (
)
type siteData struct {
- name string
- rawName string
- baseUrl string
+ name string
+ rawName string
+ baseUrl string
outputPath string
- sourcePath string
- pages map[string]page
- nav []navItem
+ sourcePath string
+ pages map[string]page
+ nav []navItem
}
func getSites(cfg config) (sites []siteData) {
@@ -24,11 +24,11 @@ func getSites(cfg config) (sites []siteData) {
for _, f := range files {
if f.IsDir() && f.Name() != ".git" {
newSite := siteData{
- name: nameify(f.Name()),
- rawName: f.Name(),
- baseUrl: filepath.Join(cfg.BaseUrl, f.Name()),
+ name: nameify(f.Name()),
+ rawName: f.Name(),
+ baseUrl: filepath.Join(cfg.BaseUrl, f.Name()),
outputPath: filepath.Join(cfg.TargetDir, f.Name()),
- sourcePath: filepath.Join(cfg.DocsRoot, f.Name())}
+ sourcePath: filepath.Join(cfg.DocsRoot, f.Name())}
sites = append(sites, newSite)
}
}