From 4fa89879cf8c449756ecf9d71759d62618957540 Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Tue, 14 Feb 2023 20:12:49 -0500 Subject: [PATCH] feat: permalink generator --- public/icons/link.svg | 3 +++ public/question.css | 7 +++++++ templates/question.html | 9 ++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 public/icons/link.svg diff --git a/public/icons/link.svg b/public/icons/link.svg new file mode 100644 index 0000000..033ac88 --- /dev/null +++ b/public/icons/link.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/question.css b/public/question.css index 0b947ba..e09b131 100644 --- a/public/question.css +++ b/public/question.css @@ -90,6 +90,13 @@ img { margin-bottom: 1rem; background-color: var(--meta-bg); color: var(--text-color); + + display: flex; + justify-content: space-between; +} + +.answer-meta p { + margin: 0; } .answer-meta.accepted { diff --git a/templates/question.html b/templates/question.html index 20e8043..0c0120d 100644 --- a/templates/question.html +++ b/templates/question.html @@ -72,9 +72,16 @@
+

{{ if $answer.IsAccepted }} Accepted - {{ end }} {{$answer.Upvotes}} Votes -

+

+ +
+ Paperclip icon +
+
+ {{ $answer.Body }}