diff options
author | FChannel <> | 2021-06-17 00:21:07 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-17 00:21:07 -0700 |
commit | cc24155859b65653495747bd0b38be9bcef33298 (patch) | |
tree | c46e5b7273534e9626d746855b3b036ee06c1006 /static/npost.html | |
parent | bf23a5c30ace0525e2ad67a979916af5ebab3001 (diff) |
added html meta data as well as basic hover effect on links
Diffstat (limited to 'static/npost.html')
-rw-r--r-- | static/npost.html | 17 |
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 }} |