diff --git a/templates/main.html b/templates/main.html
index 1733749..cb5714a 100644
--- a/templates/main.html
+++ b/templates/main.html
@@ -1,6 +1,6 @@
- {{if ne .PostID 0}}{{ (index .Posts 0).Post.Name}} : {{.CommunityName}}{{else if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ .Host }}{{end}}
+ {{if and .Posts .PostID }}{{ (index .Posts 0).Post.Name}} : {{.CommunityName}}{{else if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ .Host }}{{end}}
@@ -67,7 +67,7 @@
{{ template "create_post.html" . }}
{{ end }}
-{{ if .PostID }}
+{{ if and .PostID .Posts}}
{{ if .CommentID}}
you are viewing a single comment's thread view the rest of the comments
diff --git a/templates/nav.html b/templates/nav.html
index 7fcca7a..8b237cd 100644
--- a/templates/nav.html
+++ b/templates/nav.html
@@ -4,11 +4,10 @@
- all
|
- {{ $last := (sub (len .TopCommunities) 1) }}
{{ $host := .Host }}
{{ range $i, $c := .TopCommunities}}
{{$c.Community.Name}}
- {{ if ne $i $last }} - {{end}}
+ -
{{ end }}
more »
diff --git a/templates/sidebar.html b/templates/sidebar.html
index 449fcf8..6da0c47 100644
--- a/templates/sidebar.html
+++ b/templates/sidebar.html
@@ -40,7 +40,7 @@
{{ end }}
-{{ if .PostID }}
+{{ if and .PostID .Posts }}
this post was submitted on {{ (index .Posts 0).Post.Published.Time.Format "01 Jan 2006" }}