Browse Source

Update Open Graph description for comments pages

Previously the description (used for embeds / link previews) was always
"Tildes - a non-profit community site", so this will display how many
comments are in a discussion when people are linking to one.
merge-requests/72/head
Deimos 6 years ago
parent
commit
1d1465341a
  1. 5
      tildes/tildes/templates/topic.jinja2

5
tildes/tildes/templates/topic.jinja2

@ -12,6 +12,11 @@
{% block title %}{{ topic.title }} - ~{{ topic.group.path }}{% endblock %}
{% block meta_og_tags %}
<meta property="og:title" content="{{ self.title() }}">
<meta property="og:description" content="{{ topic.num_comments }} comments in the discussion of this {{ "link" if topic.is_link_type else "post" }} on Tildes">
{% endblock %}
{% block templates %}
{% if request.user %}
{{ comment_reply_template() }}

Loading…
Cancel
Save