Browse Source

fix #848: Added open graphtags for sharing in social media sites

Rafał Pitoń 8 years ago
parent
commit
e9a66a4f9f

+ 3 - 1
frontend/src/components/user-menu/user-nav.js

@@ -161,7 +161,9 @@ export function UserPrivateThreadsLink(props) {
 }
 }
 
 
 export function selectUserMenu(state) {
 export function selectUserMenu(state) {
-  return {user: state.auth.user};
+  return {
+    user: state.auth.user
+  };
 }
 }
 
 
 export class CompactUserNav extends React.Component {
 export class CompactUserNav extends React.Component {

File diff suppressed because it is too large
+ 0 - 0
misago/static/misago/js/misago.js.map


BIN
misago/static/og-image.jpg


+ 8 - 0
misago/templates/misago/base.html

@@ -9,6 +9,14 @@
     <meta name="description" content="{% spaceless %}{% block meta-description %}{% endblock %}{% endspaceless %}">
     <meta name="description" content="{% spaceless %}{% block meta-description %}{% endblock %}{% endspaceless %}">
     {% spaceless %}
     {% spaceless %}
       {% block meta-extra %}{% endblock meta-extra %}
       {% block meta-extra %}{% endblock meta-extra %}
+      {% block og-tags %}
+        <meta property="og:site_name" content="{% spaceless %}{% block og-site-name %}{{ misago_settings.forum_name }}{% endblock og-site-name %}{% endspaceless %}" />
+        <meta property="og:title" content="{% spaceless %}{% block og-title %}{% endblock og-title %}{% endspaceless %}" />
+        <meta property="og:description" content="{% spaceless %}{% block og-description %}{{ misago_settings.forum_index_meta_description|default:'' }}{% endblock og-description %}{% endspaceless %}" />
+        <meta property="og:type" content="website" />
+        <meta property="og:url" content="{% spaceless %}{% block og-url %}{{ SITE_ADDRESS }}{% endblock og-url %}{% endspaceless %}" />
+        <meta property="og:image" content="{% spaceless %}{% block og-image %}{% static 'og-image.jpg' %}{% endblock og-image %}{% endspaceless %}" />
+      {% endblock og-tags %}
     {% endspaceless %}
     {% endspaceless %}
     {% include "misago/head.html" %}
     {% include "misago/head.html" %}
     <script type="application/ld+json">{"@context":"http://schema.org","@type":"WebSite","url":"{{ SITE_ADDRESS }}"}</script>
     <script type="application/ld+json">{"@context":"http://schema.org","@type":"WebSite","url":"{{ SITE_ADDRESS }}"}</script>

+ 45 - 10
misago/templates/misago/categories/base.html

@@ -3,25 +3,60 @@
 
 
 
 
 {% block title %}
 {% block title %}
-{% if THREADS_ON_INDEX %}
-  {% trans "Categories" %} | {{ block.super }}
-{% else %}
-  {% if misago_settings.forum_index_title %}
-    {{ misago_settings.forum_index_title }}
+  {% if THREADS_ON_INDEX %}
+    {% trans "Categories" %} | {{ block.super }}
   {% else %}
   {% else %}
-    {{ misago_settings.forum_name }}
+    {% if misago_settings.forum_index_title %}
+      {{ misago_settings.forum_index_title }}
+    {% else %}
+      {{ misago_settings.forum_name }}
+    {% endif %}
   {% endif %}
   {% endif %}
-{% endif %}
 {% endblock title %}
 {% endblock title %}
 
 
 
 
 {% block meta-description %}
 {% block meta-description %}
-{% if not THREADS_ON_INDEX and misago_settings.forum_index_meta_description %}
-  {{ misago_settings.forum_index_meta_description }}
-{% endif %}
+  {% if not THREADS_ON_INDEX and misago_settings.forum_index_meta_description %}
+    {{ misago_settings.forum_index_meta_description }}
+  {% else %}
+  {% blocktrans trimmed count categories=categories|length with forum_name=misago_settings.forum_name %}
+      There is {{ categories }} main category currenty available on the {{ forum_name }}.
+    {% plural %}
+      There are {{ categories }} main categories currenty available on the {{ forum_name }}.
+    {% endblocktrans %}
+  {% endif %}
 {% endblock meta-description %}
 {% endblock meta-description %}
 
 
 
 
+{% block og-title %}
+  {% if THREADS_ON_INDEX %}
+    {% trans "Categories" %}
+  {% else %}
+    {% if misago_settings.forum_index_title %}
+      {{ misago_settings.forum_index_title }}
+    {% else %}
+      {{ misago_settings.forum_name }}
+    {% endif %}
+  {% endif %}
+{% endblock og-title %}
+
+
+{% block og-description %}
+  {% if not THREADS_ON_INDEX and misago_settings.forum_index_meta_description %}
+    {{ misago_settings.forum_index_meta_description }}
+  {% else %}
+    {% blocktrans trimmed count categories=categories|length with forum_name=misago_settings.forum_name %}
+      There is {{ categories }} main category currenty available on the {{ forum_name }}.
+    {% plural %}
+      There are {{ categories }} main categories currenty available on the {{ forum_name }}.
+    {% endblocktrans %}
+  {% endif %}
+{% endblock og-description %}
+
+
+{% block og-url %}{{ SITE_ADDRESS }}{{ REQUEST_PATH }}{% endblock %}
+
+
 {% block content %}
 {% block content %}
 <div class="page page-categories {{ categories|iffalse:'page-message' }}">
 <div class="page page-categories {{ categories|iffalse:'page-message' }}">
   {% include "misago/categories/header.html" %}
   {% include "misago/categories/header.html" %}

+ 21 - 3
misago/templates/misago/errorpages/403.html

@@ -5,7 +5,25 @@
 {% block title %}{% trans "Page not available" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Page not available" %} | {{ block.super }}{% endblock %}
 
 
 
 
-{% block meta_description %}{% if message %}{{ message }}{% else %}{% trans "You don't have permission to access this page." %}{% endif %}{% endblock meta_description %}
+{% block meta-description %}
+  {% if message %}
+    {{ message }}
+  {% else %}
+    {% trans "You don't have permission to access this page." %}
+  {% endif %}
+{% endblock meta-description %}
+
+
+{% block og-title %}{% trans "Page not found" %}{% endblock %}
+
+
+{% block og-description %}
+  {% if message %}
+    {{ message }}
+  {% else %}
+    {% trans "You don't have permission to access this page." %}
+  {% endif %}
+{% endblock %}
 
 
 
 
 {% block content %}
 {% block content %}
@@ -20,9 +38,9 @@
       <div class="message-body">
       <div class="message-body">
         <p class="lead">{% trans "This page is not available." %}</p>
         <p class="lead">{% trans "This page is not available." %}</p>
         {% if message %}
         {% if message %}
-        <p>{{ message|escape|urlize|linebreaksbr }}</p>
+          <p>{{ message|escape|urlize|linebreaksbr }}</p>
         {% else %}
         {% else %}
-        <p>{% trans "You don't have permission to access this page." %}</p>
+          <p>{% trans "You don't have permission to access this page." %}</p>
         {% endif %}
         {% endif %}
       </div>
       </div>
 
 

+ 11 - 1
misago/templates/misago/errorpages/404.html

@@ -5,7 +5,17 @@
 {% block title %}{% trans "Page not found" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Page not found" %} | {{ block.super }}{% endblock %}
 
 
 
 
-{% block meta_description %}{% trans "The link you clicked was incorrect or the page has been moved or deleted." %}{% endblock meta_description %}
+{% block meta-description %}
+{% trans "The link you clicked was incorrect or the page has been moved or deleted." %}
+{% endblock meta-description %}
+
+
+{% block og-title %}{% trans "Page not found" %}{% endblock %}
+
+
+{% block og-description %}
+{% trans "The link you clicked was incorrect or the page has been moved or deleted." %}
+{% endblock %}
 
 
 
 
 {% block content %}
 {% block content %}

+ 11 - 1
misago/templates/misago/errorpages/405.html

@@ -5,7 +5,17 @@
 {% block title %}{% trans "Wrong way" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Wrong way" %} | {{ block.super }}{% endblock %}
 
 
 
 
-{% block meta_description %}{% trans "This page should be reached via form submission or pressing button." %}{% endblock meta_description %}
+{% block meta-description %}
+{% trans "This page should be reached via form submission or pressing button." %}
+{% endblock meta-description %}
+
+
+{% block og-title %}{% trans "Wrong way" %}{% endblock %}
+
+
+{% block og-description %}
+{% trans "This page should be reached via form submission or pressing button." %}
+{% endblock %}
 
 
 
 
 {% block content %}
 {% block content %}

+ 3 - 1
misago/templates/misago/errorpages/banned.html

@@ -5,7 +5,9 @@
 {% block title %}{% trans "You are banned" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "You are banned" %} | {{ block.super }}{% endblock %}
 
 
 
 
-{% block meta_description %}{% trans "You are banned from accessing this page." %}{% endblock meta_description %}
+{% block meta-description %}
+{% trans "You are banned from accessing this page." %}
+{% endblock meta-description %}
 
 
 
 
 {% block content %}
 {% block content %}

+ 3 - 1
misago/templates/misago/errorpages/csrf_failure.html

@@ -5,7 +5,9 @@
 {% block title %}{% trans "Request blocked" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Request blocked" %} | {{ block.super }}{% endblock %}
 
 
 
 
-{% block meta_description %}{% trans "This is usually caused by your browser not accepting or using outdated cookies. Check your browser configuration and try again." %}{% endblock meta_description %}
+{% block meta-description %}
+{% trans "This is usually caused by your browser not accepting or using outdated cookies. Check your browser configuration and try again." %}
+{% endblock meta-description %}
 
 
 
 
 {% block content %}
 {% block content %}

+ 6 - 0
misago/templates/misago/privacy_policy.html

@@ -5,6 +5,12 @@
 {% block title %}{{ title }} | {{ block.super }}{% endblock %}
 {% block title %}{{ title }} | {{ block.super }}{% endblock %}
 
 
 
 
+{% block og-title %}{{ title }}{% endblock %}
+
+
+{% block og-url %}{{ SITE_ADDRESS }}{{ REQUEST_PATH }}{% endblock %}
+
+
 {% block content %}
 {% block content %}
 <div class="page page-legal legal-privacy-policy">
 <div class="page page-legal legal-privacy-policy">
   <div class="page-header-bg">
   <div class="page-header-bg">

+ 3 - 0
misago/templates/misago/profile/ban_details.html

@@ -5,6 +5,9 @@
 {% block title %}{% trans "Ban details" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Ban details" %} | {{ block.super }}{% endblock %}
 
 
 
 
+{% block og-title %}{% trans "Ban details" %} | {{ block.super }}{% endblock %}
+
+
 {% block section %}
 {% block section %}
 <div class="profile-ban-details">
 <div class="profile-ban-details">
   <div class="panel panel-default">
   <div class="panel panel-default">

+ 26 - 1
misago/templates/misago/profile/base.html

@@ -3,11 +3,36 @@
 
 
 
 
 {% block title %}{{ profile.username }} | {{ block.super }}{% endblock %}
 {% block title %}{{ profile.username }} | {{ block.super }}{% endblock %}
+
+
 {% block meta-description %}
 {% block meta-description %}
-{% blocktrans trimmed with joined_on=user.joined_on|date %}Member since {{ joined_on }}.{% endblocktrans %} {{ profile.rank.name }}
+  {% blocktrans trimmed with title=profile.get_any_title joined_on=profile.joined_on|date %}
+    {{ title }}, joined on {{ joined_on }}.
+  {% endblocktrans %}
 {% endblock %}
 {% endblock %}
 
 
 
 
+{% block og-title %}{{ profile.username }}{% endblock %}
+
+
+{% block og-description %}
+  {% blocktrans trimmed with title=profile.get_any_title joined_on=profile.joined_on|date %}
+    {{ title }}, joined on {{ joined_on }}.
+  {% endblocktrans %} {% blocktrans trimmed count posts=profile.posts %}
+    Wrote {{ posts }} post.
+  {% plural %}
+    Wrote {{ posts }} posts.
+  {% endblocktrans %} {% blocktrans trimmed count threads=profile.threads %}
+    Started {{ threads }} thread.
+  {% plural %}
+    Started {{ threads }} threads.
+  {% endblocktrans %}
+{% endblock og-description %}
+
+
+{% block og-url %}{{ SITE_ADDRESS }}{{ REQUEST_PATH }}{% endblock %}
+
+
 {% block content %}
 {% block content %}
 <div class="page page-user-profile">
 <div class="page page-user-profile">
 
 

+ 4 - 0
misago/templates/misago/profile/followers.html

@@ -1,9 +1,13 @@
 {% extends "misago/profile/base.html" %}
 {% extends "misago/profile/base.html" %}
 {% load i18n %}
 {% load i18n %}
 
 
+
 {% block title %}{% trans "Followers" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Followers" %} | {{ block.super }}{% endblock %}
 
 
 
 
+{% block og-title %}{% trans "Followers" %} | {{ block.super }}{% endblock %}
+
+
 {% block section %}
 {% block section %}
 <div class="profile-followers">
 <div class="profile-followers">
 
 

+ 4 - 0
misago/templates/misago/profile/follows.html

@@ -1,9 +1,13 @@
 {% extends "misago/profile/base.html" %}
 {% extends "misago/profile/base.html" %}
 {% load i18n %}
 {% load i18n %}
 
 
+
 {% block title %}{% trans "Follows" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Follows" %} | {{ block.super }}{% endblock %}
 
 
 
 
+{% block og-title %}{% trans "Follows" %} | {{ block.super }}{% endblock %}
+
+
 {% block section %}
 {% block section %}
 <div class="profile-follows">
 <div class="profile-follows">
 
 

+ 4 - 0
misago/templates/misago/profile/posts.html

@@ -1,9 +1,13 @@
 {% extends "misago/profile/base.html" %}
 {% extends "misago/profile/base.html" %}
 {% load i18n %}
 {% load i18n %}
 
 
+
 {% block title %}{% trans "Posts" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Posts" %} | {{ block.super }}{% endblock %}
 
 
 
 
+{% block og-title %}{% trans "Posts" %} | {{ block.super }}{% endblock %}
+
+
 {% block section %}
 {% block section %}
 <div class="profile-posts">
 <div class="profile-posts">
 
 

+ 4 - 0
misago/templates/misago/profile/threads.html

@@ -1,9 +1,13 @@
 {% extends "misago/profile/base.html" %}
 {% extends "misago/profile/base.html" %}
 {% load i18n %}
 {% load i18n %}
 
 
+
 {% block title %}{% trans "Threads" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Threads" %} | {{ block.super }}{% endblock %}
 
 
 
 
+{% block og-title %}{% trans "Threads" %} | {{ block.super }}{% endblock %}
+
+
 {% block section %}
 {% block section %}
 <div class="profile-threads">
 <div class="profile-threads">
 
 

+ 3 - 0
misago/templates/misago/profile/username_history.html

@@ -5,6 +5,9 @@
 {% block title %}{% trans "Username history" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Username history" %} | {{ block.super }}{% endblock %}
 
 
 
 
+{% block og-title %}{% trans "Username history" %} | {{ block.super }}{% endblock %}
+
+
 {% block section %}
 {% block section %}
 <div class="profile-username-history">
 <div class="profile-username-history">
 
 

+ 6 - 0
misago/templates/misago/search.html

@@ -5,6 +5,12 @@
 {% block title %}{% trans "Search site" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Search site" %} | {{ block.super }}{% endblock %}
 
 
 
 
+{% block og-title %}{% trans "Search site" %}{% endblock %}
+
+
+{% block og-url %}{{ SITE_ADDRESS }}{{ REQUEST_PATH }}{% endblock %}
+
+
 {% block content %}
 {% block content %}
 <div class="page page-search">
 <div class="page page-search">
   <div class="page-header-bg">
   <div class="page-header-bg">

+ 6 - 0
misago/templates/misago/terms_of_service.html

@@ -5,6 +5,12 @@
 {% block title %}{{ title }} | {{ block.super }}{% endblock %}
 {% block title %}{{ title }} | {{ block.super }}{% endblock %}
 
 
 
 
+{% block og-title %}{{ title }}{% endblock %}
+
+
+{% block og-url %}{{ SITE_ADDRESS }}{{ REQUEST_PATH }}{% endblock %}
+
+
 {% block content %}
 {% block content %}
 <div class="legal-page legal-terms-of-service">
 <div class="legal-page legal-terms-of-service">
   <div class="page-header-bg">
   <div class="page-header-bg">

+ 5 - 5
misago/templates/misago/thread/private_thread.html

@@ -3,11 +3,11 @@
 
 
 
 
 {% block title %}
 {% block title %}
-{% if paginator.page > 1 %}
-  {{ thread.title }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ category }} | {{ block.super }}
-{% else %}
-  {{ thread.title }} | {{ category }} | {{ block.super }}
-{% endif %}
+  {% if paginator.page > 1 %}
+    {{ thread.title }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ category }} | {{ block.super }}
+  {% else %}
+    {{ thread.title }} | {{ category }} | {{ block.super }}
+  {% endif %}
 {% endblock title %}
 {% endblock title %}
 
 
 
 

+ 24 - 5
misago/templates/misago/thread/thread.html

@@ -3,14 +3,33 @@
 
 
 
 
 {% block title %}
 {% block title %}
-{% if paginator.page > 1 %}
-  {{ thread.title }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ category.name }} | {{ block.super }}
-{% else %}
-  {{ thread.title }} | {{ category.name }} | {{ block.super }}
-{% endif %}
+  {% if paginator.page > 1 %}
+    {{ thread.title }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ category.name }} | {{ block.super }}
+  {% else %}
+    {{ thread.title }} | {{ category.name }} | {{ block.super }}
+  {% endif %}
 {% endblock title %}
 {% endblock title %}
 
 
 
 
+{% block og-title %}{{ thread.title }}{% endblock %}
+
+
+{% block og-description %}
+  {% blocktrans trimmed with starter=thread.starter_name started_on=thread.started_on|date category=category.name %}
+    Started by {{ starter }} on {{ started_on }} in the {{ category }} category.
+  {% endblocktrans %} {% blocktrans trimmed count replies=thread.replies with last_post_on=thread.last_post_on|date %}
+    {{ replies }} reply, last one from {{ last_post_on }}.
+  {% plural %}
+    {{ replies }} replies, last one from {{ last_post_on }}.
+  {% endblocktrans %}
+{% endblock og-description %}
+
+
+{% block og-url %}
+{{ SITE_ADDRESS }}{{ thread.get_absolute_url }}
+{% endblock og-url %}
+
+
 {% block meta-extra %}
 {% block meta-extra %}
 {% if paginator.page > 1 %}
 {% if paginator.page > 1 %}
 <link rel="canonical" href="{% url url_name slug=thread.slug pk=thread.pk page=paginator.page %}" />
 <link rel="canonical" href="{% url url_name slug=thread.slug pk=thread.pk page=paginator.page %}" />

+ 30 - 15
misago/templates/misago/threadslist/category.html

@@ -3,31 +3,46 @@
 
 
 
 
 {% block title %}
 {% block title %}
-{% if list_name %}
-  {% if paginator.page > 1 %}
-    {{ list_name }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ category }} | {{ block.super }}
+  {% if list_name %}
+    {% if paginator.page > 1 %}
+      {{ list_name }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ category }} | {{ block.super }}
+    {% else %}
+      {{ list_name }} | {{ category }} | {{ block.super }}
+    {% endif %}
+  {% elif paginator.page > 1 %}
+    {{ category }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ block.super }}
   {% else %}
   {% else %}
-    {{ list_name }} | {{ category }} | {{ block.super }}
+    {{ category }} | {{ block.super }}
   {% endif %}
   {% endif %}
-{% elif paginator.page > 1 %}
-  {{ category }} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ block.super }}
-{% else %}
-  {{ category }} | {{ block.super }}
-{% endif %}
 {% endblock title %}
 {% endblock title %}
 
 
 
 
 {% block meta-description %}
 {% block meta-description %}
-{% if category.description %}
-  {{ category.description }}
-{% endif %}
+  {% if category.description %}
+    {{ category.description }}
+  {% endif %}
 {% endblock meta-description %}
 {% endblock meta-description %}
 
 
 
 
+{% block og-title %}
+  {{ category }}
+{% endblock og-title %}
+
+
+{% block og-description %}
+  {% if category.description %}
+    {{ category.description }}
+  {% endif %}
+{% endblock og-description %}
+
+
+{% block og-url %}{{ SITE_ADDRESS }}{{ REQUEST_PATH }}{% endblock %}
+
+
 {% block extra-css %}
 {% block extra-css %}
-{% if category.css_class %}
-  page-{{ category.css_class }}
-{% endif %}
+  {% if category.css_class %}
+    page-{{ category.css_class }}
+  {% endif %}
 {% endblock extra-css %}
 {% endblock extra-css %}
 
 
 
 

+ 34 - 18
misago/templates/misago/threadslist/threads.html

@@ -3,33 +3,49 @@
 
 
 
 
 {% block title %}
 {% block title %}
-{% if THREADS_ON_INDEX and paginator.page == 1 %}
-  {% if list_name %}
-    {{ list_name }} | {{ block.super }}
-  {% elif misago_settings.forum_index_title %}
-    {{ misago_settings.forum_index_title }}
+  {% if THREADS_ON_INDEX and paginator.page == 1 %}
+    {% if list_name %}
+      {{ list_name }} | {{ block.super }}
+    {% elif misago_settings.forum_index_title %}
+      {{ misago_settings.forum_index_title }}
+    {% else %}
+      {{ misago_settings.forum_name }}
+    {% endif %}
   {% else %}
   {% else %}
-    {{ misago_settings.forum_name }}
+    {% if list_name %}
+      {{ list_name }} | {% trans "Threads" %} | {{ block.super }}
+    {% elif paginator.page > 1 %}
+      {% trans "Threads" %} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ block.super }}
+    {% else %}
+      {% trans "Threads" %} | {{ block.super }}
+    {% endif %}
   {% endif %}
   {% endif %}
-{% else %}
-  {% if list_name %}
-    {{ list_name }} | {% trans "Threads" %} | {{ block.super }}
-  {% elif paginator.page > 1 %}
-    {% trans "Threads" %} ({% blocktrans with page=paginator.page %}page: {{ page }}{% endblocktrans %}) | {{ block.super }}
-  {% else %}
-    {% trans "Threads" %} | {{ block.super }}
-  {% endif %}
-{% endif %}
 {% endblock title %}
 {% endblock title %}
 
 
 
 
 {% block meta-description %}
 {% block meta-description %}
-{% if THREADS_ON_INDEX and misago_settings.forum_index_meta_description %}
-  {{ misago_settings.forum_index_meta_description }}
-{% endif %}
+  {% if THREADS_ON_INDEX and misago_settings.forum_index_meta_description %}
+    {{ misago_settings.forum_index_meta_description }}
+  {% endif %}
 {% endblock meta-description %}
 {% endblock meta-description %}
 
 
 
 
+{% block og-title %}
+  {% if THREADS_ON_INDEX %}
+    {% if misago_settings.forum_index_title %}
+      {{ misago_settings.forum_index_title }}
+    {% else %}
+      {{ misago_settings.forum_name }}
+    {% endif %}
+  {% else %}
+    {% trans "Threads" %}
+  {% endif %}
+{% endblock og-title %}
+
+
+{% block og-url %}{{ SITE_ADDRESS }}{{ REQUEST_PATH }}{% endblock %}
+
+
 {% block page-header %}
 {% block page-header %}
 <div class="page-header">
 <div class="page-header">
   <div class="container">
   <div class="container">

+ 24 - 1
misago/templates/misago/userslists/active_posters.html

@@ -3,6 +3,8 @@
 
 
 
 
 {% block title %}{% trans "Active posters" %} | {{ block.super }}{% endblock %}
 {% block title %}{% trans "Active posters" %} | {{ block.super }}{% endblock %}
+
+
 {% block meta-description %}
 {% block meta-description %}
   {% if users_count %}
   {% if users_count %}
     {% blocktrans trimmed with posters=users_count days=tracked_period count counter=users_count %}
     {% blocktrans trimmed with posters=users_count days=tracked_period count counter=users_count %}
@@ -15,7 +17,28 @@
       No users have posted any new messages during last {{ days }} days.
       No users have posted any new messages during last {{ days }} days.
     {% endblocktrans %}
     {% endblocktrans %}
   {% endif %}
   {% endif %}
-{% endblock %}
+{% endblock meta-description %}
+
+
+{% block og-title %}{% trans "Active posters" %}{% endblock %}
+
+
+{% block og-description %}
+  {% if users_count %}
+    {% blocktrans trimmed with posters=users_count days=tracked_period count counter=users_count %}
+      {{ posters }} most active poster from last {{ days }} days.
+    {% plural %}
+      {{ posters }} most active posters from last {{ days }} days.
+    {% endblocktrans %}
+  {% else %}
+    {% blocktrans trimmed with days=tracked_period %}
+      No users have posted any new messages during last {{ days }} days.
+    {% endblocktrans %}
+  {% endif %}
+{% endblock og-description %}
+
+
+{% block og-url %}{{ SITE_ADDRESS }}{{ REQUEST_PATH }}{% endblock %}
 
 
 
 
 {% block content %}
 {% block content %}

+ 39 - 14
misago/templates/misago/userslists/rank.html

@@ -3,28 +3,53 @@
 
 
 
 
 {% block title %}{% pagetitle rank.name page=paginator.page %} | {{ block.super }}{% endblock %}
 {% block title %}{% pagetitle rank.name page=paginator.page %} | {{ block.super }}{% endblock %}
+
+
 {% block meta-description %}
 {% block meta-description %}
-{{ rank.description|default:"" }}
+  {{ rank.description|default:"" }} {% blocktrans trimmed count users=paginator.count %}
+    {{ users }} user have this rank.
+  {% plural %}
+    {{ users }} users have this rank.
+  {% endblocktrans %}
 {% endblock %}
 {% endblock %}
 
 
 
 
 {% block meta-extra %}
 {% block meta-extra %}
-{% if paginator.page > 1 %}
-<link rel="canonical" href="{% url 'misago:users-rank' slug=rank.slug page=paginator.page %}" />
-{% else %}
-<link rel="canonical" href="{% url 'misago:users-rank' slug=rank.slug %}" />
-{% endif %}
-{% if paginator.previous > 1 %}
-<link rel="prev" href="{% url 'misago:users-rank' slug=rank.slug page=paginator.previous %}" />
-{% elif paginator.previous %}
-<link rel="prev" href="{% url 'misago:users-rank' slug=rank.slug %}" />
-{% endif %}
-{% if paginator.next %}
-<link rel="next" href="{% url 'misago:users-rank' slug=rank.slug page=paginator.next %}" />
-{% endif %}
+  {% if paginator.page > 1 %}
+    <link rel="canonical" href="{% url 'misago:users-rank' slug=rank.slug page=paginator.page %}" />
+  {% else %}
+    <link rel="canonical" href="{% url 'misago:users-rank' slug=rank.slug %}" />
+  {% endif %}
+  {% if paginator.previous > 1 %}
+    <link rel="prev" href="{% url 'misago:users-rank' slug=rank.slug page=paginator.previous %}" />
+  {% elif paginator.previous %}
+    <link rel="prev" href="{% url 'misago:users-rank' slug=rank.slug %}" />
+  {% endif %}
+  {% if paginator.next %}
+    <link rel="next" href="{% url 'misago:users-rank' slug=rank.slug page=paginator.next %}" />
+  {% endif %}
 {% endblock meta-extra %}
 {% endblock meta-extra %}
 
 
 
 
+{% block og-title %}
+  {{ rank.name }}
+{% endblock og-title %}
+
+
+{% block og-description %}
+  {% if rank.description %}
+    {{ rank.description }}
+  {% endif %} {% blocktrans trimmed count users=paginator.count %}
+    {{ users }} user have this rank.
+  {% plural %}
+    {{ users }} users have this rank.
+  {% endblocktrans %}
+{% endblock og-description %}
+
+
+{% block og-url %}{{ SITE_ADDRESS }}{{ rank.get_absolute_url }}{% endblock %}
+
+
 {% block content %}
 {% block content %}
 {{ block.super }}
 {{ block.super }}
 
 

Some files were not shown because too many files changed in this diff