From 548227104c1f12fae1e516177126e6a2ed7a6d34 Mon Sep 17 00:00:00 2001 From: Azareal Date: Mon, 17 Dec 2018 20:14:20 +1000 Subject: [PATCH] Added meta canonical to help with SEO. Swapped out some *.IDs for *.Links Added IDs to the posts. --- templates/forum.html | 5 +++-- templates/topic.html | 10 ++++++---- templates/topic_alt.html | 10 ++++++---- templates/topic_alt_posts.html | 2 +- templates/topic_posts.html | 4 ++-- templates/topics.html | 1 + 6 files changed, 19 insertions(+), 13 deletions(-) diff --git a/templates/forum.html b/templates/forum.html index dd35d1ee..e70efc12 100644 --- a/templates/forum.html +++ b/templates/forum.html @@ -1,7 +1,8 @@ {{template "header.html" . }} -{{if gt .Page 1}}
{{end}} -{{if ne .LastPage .Page}}
{{end}} +{{if gt .Page 1}}
{{end}} +{{if ne .LastPage .Page}}
{{end}} +
diff --git a/templates/topic.html b/templates/topic.html index 5b585bfb..d0507177 100644 --- a/templates/topic.html +++ b/templates/topic.html @@ -1,14 +1,16 @@ {{template "header.html" . }}
-{{if gt .Page 1}} -{{end}} +{{if gt .Page 1}} +{{end}} -{{if ne .LastPage .Page}} +{{if ne .LastPage .Page}} {{end}} + +
diff --git a/templates/topic_alt.html b/templates/topic_alt.html index 9b4a536b..26fbf66f 100644 --- a/templates/topic_alt.html +++ b/templates/topic_alt.html @@ -1,10 +1,12 @@ {{template "header.html" . }} -{{if gt .Page 1}} -{{end}} +{{if gt .Page 1}} +{{end}} -{{if ne .LastPage .Page}} -{{end}} +{{if ne .LastPage .Page}} +{{end}} + +
diff --git a/templates/topic_alt_posts.html b/templates/topic_alt_posts.html index 1d7cdeeb..33505cb9 100644 --- a/templates/topic_alt_posts.html +++ b/templates/topic_alt_posts.html @@ -1,4 +1,4 @@ -{{range .ItemList}}
+{{range .ItemList}}
 
diff --git a/templates/topic_posts.html b/templates/topic_posts.html index 560c9760..a15130c0 100644 --- a/templates/topic_posts.html +++ b/templates/topic_posts.html @@ -1,11 +1,11 @@
{{range .ItemList}} {{if .ActionType}} -
+
{{.ActionIcon}} {{.ActionType}}
{{else}} -
+
{{/** TODO: We might end up with
s in the inline editor, fix this **/}}

{{.ContentHtml}}

diff --git a/templates/topics.html b/templates/topics.html index be90c760..b61bb1e2 100644 --- a/templates/topics.html +++ b/templates/topics.html @@ -1,4 +1,5 @@ {{template "header.html" . }} +