aboutsummaryrefslogtreecommitdiff
path: root/static/npost.html
diff options
context:
space:
mode:
authorFChannel <>2021-06-17 00:21:07 -0700
committerFChannel <>2021-06-17 00:21:07 -0700
commitcc24155859b65653495747bd0b38be9bcef33298 (patch)
treec46e5b7273534e9626d746855b3b036ee06c1006 /static/npost.html
parentbf23a5c30ace0525e2ad67a979916af5ebab3001 (diff)
added html meta data as well as basic hover effect on links
Diffstat (limited to 'static/npost.html')
-rw-r--r--static/npost.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/static/npost.html b/static/npost.html
index b91b795..740018b 100644
--- a/static/npost.html
+++ b/static/npost.html
@@ -1,4 +1,21 @@
{{ define "header" }}
+<title>/{{ .Board.Name }}/ - {{ .PostId }}</title>
+<meta name="description" content="{{ (index .Posts 0).Content }}">
+<meta property="og:url" content="{{ (index .Posts 0).Id }}">
+<meta property="og:site_name" content="{{ .Instance.PreferredUsername }}" />
+
+<meta property="og:title" content="{{ (index .Posts 0).Name }}">
+<meta property="og:description" content="{{ (index .Posts 0).Content }}">
+
+<meta name="twitter:title" content="{{ (index .Posts 0).Name }}">
+<meta name="twitter:description" content="{{ (index .Posts 0).Content }}">
+<meta name="twitter:card" content="summary_large_image">
+
+{{ if (index .Posts 0).Preview }}
+<meta property="og:image" content="{{ (index .Posts 0).Preview.Href }}" />
+<meta name="twitter:image" content="{{ (index .Posts 0).Preview.Href }}" />
+{{ end }}
+
<script src="/static/js/posts.js"></script>
{{ end }}