diff options
author | bnewbold <bnewbold@robocracy.org> | 2023-03-14 13:00:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 15:00:44 -0500 |
commit | 8629e167cd668cd1d41bf6a37acf9d94502e5c2b (patch) | |
tree | d42bb4210cc779fc69b9127fd70edcdc5c88c09a /bskyweb/templates/post.html | |
parent | 528e14fe90af1614af025cb101acfbaa0ddb5a15 (diff) | |
download | voidsky-8629e167cd668cd1d41bf6a37acf9d94502e5c2b.tar.zst |
bskyweb: proof-of-concept golang daemon to serve SPA (#275)
* gitignore: /dist/ * bskyweb: initial work-in-progress * bskyweb: import icons from bluesky-website * bskyweb: switch to pongo2 templates; iterate on views * bskyweb: example.env (and docs) * bskyweb: go fmt * bskyweb: remove plan file * bskyweb: README: tweak formatting * prettier: ignore /dist/, bskyweb templates --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'bskyweb/templates/post.html')
-rw-r--r-- | bskyweb/templates/post.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html new file mode 100644 index 000000000..a24f64ab5 --- /dev/null +++ b/bskyweb/templates/post.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} + +{% block head_page_meta -%} +<!-- TODO: "same as" indication with at:// URI? --> +{%- if postView -%} + <meta property="og:type" content="article"/> + <meta name="twitter:card" content="summary"/> + {%- if postView.Author.DisplayName -%} + <meta property="og:title" content="{{ postView.Author.DisplayName }} / {{ postView.Author.Handle }}"/> + <meta name="twitter:title" content="{{ postView.Author.DisplayName }} / {{ postView.Author.Handle }}"/> + {%- else -%} + <meta property="og:title" content="{{ postView.Author.Handle }}"/> + <meta name="twitter:title" content="{{ postView.Author.Handle }}"/> + {%- endif -%} + {%- if postView.Record.Text -%} + <meta name="twitter:description" content="{{ postView.Record.Text }}"/> + <!-- TODO: could put any images in here, or author avatar --> + {%- endif -%} +{%- endif -%} +{%- endblock %} + +{% block noscript_extra -%} +<p>{{ postView.Author.DisplayName }} / {{ postView.Author.Handle }} +<p>{{ postView.Record.Text }} +{%- endblock %} |