Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

Commit

Permalink
Remove slashes in code, not in template
Browse files Browse the repository at this point in the history
  • Loading branch information
agonzalezro committed Jul 31, 2016
1 parent 124e5bd commit e91ec90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion file/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (pf *ParsedFile) parse() error {
}

if pf.Slug == "" {
pf.Slug = fmt.Sprintf("/%s.html", utils.Slugify(pf.Title))
pf.Slug = fmt.Sprintf("%s.html", utils.Slugify(pf.Title))
}

pf.scanner.Scan() // We don't want the title underlining
Expand Down
4 changes: 2 additions & 2 deletions templates/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion templates/body/navbar.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{end}}

{{range $_, $page := .Pages}}
<li><a href="/pages{{$page.Slug}}">{{$page.Title}}</a></li>
<li><a href="/pages/{{$page.Slug}}">{{$page.Title}}</a></li>
{{end}}
</ul>
{{ end }}
Expand Down

0 comments on commit e91ec90

Please sign in to comment.