diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html index 866664e509..3bc8098ae9 100644 --- a/bskyweb/templates/base.html +++ b/bskyweb/templates/base.html @@ -134,30 +134,18 @@ - {% block head_page_meta -%} - - - - - - - - - {%- endblock %} - - - + {% block html_head_extra -%}{%- endblock %} + - {% block head_metadata %}{% endblock %}
{%- block body_all %} {% endblock -%} diff --git a/bskyweb/templates/home.html b/bskyweb/templates/home.html index 631f281c01..6625a7d96e 100644 --- a/bskyweb/templates/home.html +++ b/bskyweb/templates/home.html @@ -2,6 +2,18 @@ {% block head_title %}Bluesky{% endblock %} +{% block html_head_extra -%} + + + + + + + + + +{%- endblock %} + {% block noscript_extra %}This is the home page. {% endblock %} diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html index a24f64ab5a..866a97396c 100644 --- a/bskyweb/templates/post.html +++ b/bskyweb/templates/post.html @@ -1,25 +1,32 @@ {% extends "base.html" %} -{% block head_page_meta -%} - -{%- if postView -%} - - - {%- if postView.Author.DisplayName -%} - - - {%- else -%} - - - {%- endif -%} - {%- if postView.Record.Text -%} - - - {%- endif -%} -{%- endif -%} +{# TODO: link rel=canonical #} +{# TODO: "same as" #} +{% block html_head_extra -%} +{%- if postView %} + + + + + {%- if postView.Author.Avatar %} + + + {% endif -%} + {%- if postView.Record.Text %} + + + {% endif -%} + + +{% endif -%} {%- endblock %} {% block noscript_extra -%} -
{{ postView.Author.DisplayName }} / {{ postView.Author.Handle }} -
{{ postView.Record.Text }} +
{{ postView.Author.DisplayName }}
+{{ postView.Author.Handle }}
+{{ postView.Author.Did }}
+{{ postView.Record.Text }}
+{{ profileView.DisplayName }} / {{ profileView.Handle }} -
{{ profileView.Description }} +
{{ profileView.DisplayName }}
+{{ profileView.Handle }}
+{{ profileView.Did }}
+{{ profileView.Description }}
+