From 8174f2ee441bf4224665271eeea99c20c9e295ea Mon Sep 17 00:00:00 2001 From: httpjamesm <51917118+httpjamesm@users.noreply.github.com> Date: Sun, 5 May 2024 15:23:09 -0400 Subject: [PATCH] fix: remove alt from homepage logo, add "logo" alt to question header (#116) * fix: remove alt from homepage logo, add "logo" alt to question header * fix: set logo alt on question.html to "AnonymousOverflow home" --- templates/home.html | 137 +++++++++++++++------------------ templates/question.html | 163 ++++++++++++++++++---------------------- 2 files changed, 133 insertions(+), 167 deletions(-) diff --git a/templates/home.html b/templates/home.html index 036524b..057e062 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,81 +1,62 @@ - - AnonymousOverflow - Private frontend for StackOverflow - - - - - {{ template "sharedHead.html" }} - - -
-
- -

Anonymous­Overflow

-
-

Get programming help without compromising your privacy.

-

- AnonymousOverflow allows you to view StackOverflow threads - without the cluttered interface and exposing your IP address, - browsing habits and other browser fingerprint data to - StackOverflow. -

- {{ if .successMessage }} -
-

Success: {{ .successMessage }}

-
- {{ else}} {{ if .errorMessage }} -
-

Error: {{ .errorMessage }}

-
- {{end}} {{ end }} -
-
- - -
-
-
-
- - Toggle theme - -
- {{ template "themeSwitcher.html" .}} -
- + + + AnonymousOverflow - Private frontend for StackOverflow + + + + + {{ template "sharedHead.html" }} + + + +
+
+ +

Anonymous­Overflow

- - +

Get programming help without compromising your privacy.

+

+ AnonymousOverflow allows you to view StackOverflow threads + without the cluttered interface and exposing your IP address, + browsing habits and other browser fingerprint data to + StackOverflow. +

+ {{ if .successMessage }} +
+

Success: {{ .successMessage }}

+
+ {{ else}} {{ if .errorMessage }} +
+

Error: {{ .errorMessage }}

+
+ {{end}} {{ end }} +
+
+ + +
+
+
+
+ + Toggle theme + +
+ {{ template "themeSwitcher.html" .}} +
+ +
+ + + \ No newline at end of file diff --git a/templates/question.html b/templates/question.html index f0bf96c..8c1ac96 100644 --- a/templates/question.html +++ b/templates/question.html @@ -1,84 +1,73 @@ - - {{ .question.Title }} | AnonymousOverflow - - - - - - {{ template "sharedHead.html" }} - - - + + {{ .question.Title }} | AnonymousOverflow + + + + + + {{ template "sharedHead.html" }} + - - - + + + + + + - -
- - - - {{ template "themeSwitcher.html" . }} + + +
+ + + + {{ template "themeSwitcher.html" . }} +
+
+
+

{{ .question.Title }}

+

+ Asked {{ .question.Timestamp }} by + {{ .question.AuthorName + }}. +

-
-
-

{{ .question.Title }}

-

- Asked {{ .question.Timestamp }} by - {{ .question.AuthorName }}. -

-
-
{{ .question.Body }}
-
- {{ range .question.Tags }} -
{{ . }}
- {{ end }} -
- {{ if .question.Comments }} {{ template "comments.html" - .question }} {{end}} +
{{ .question.Body }}
+
+ {{ range .question.Tags }} +
{{ . }}
+ {{ end }}
-
-
-

Answers

-
-
- - -
-
+ {{ if .question.Comments }} {{ template "comments.html" + .question }} {{end}} +
+
+
+

Answers

+
+
+ + +
- {{ range $answer := .answers }} -
-
+
+ {{ range $answer := .answers }} +
+

{{ if $answer.IsAccepted }} Accepted - {{ end }} {{$answer.Upvotes}} Votes @@ -89,21 +78,17 @@

- {{ $answer.Body }} -
-
- Answered {{ $answer.Timestamp }} by - {{ $answer.AuthorName }} -
+ {{ $answer.Body }} +
+
+ Answered {{ $answer.Timestamp }} by + {{ $answer.AuthorName }}
- {{ if $answer.Comments }} {{ template "comments.html" $answer }} - {{end}}
- {{ end }} - - + {{ if $answer.Comments }} {{ template "comments.html" $answer }} + {{end}} +
+ {{ end }} + + + \ No newline at end of file