Commit 414cb37b authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'feature/opengraph-improvements' into 'master'

Make it possible to change the opengraph title per page and add more specific tags if preferred

Closes #270

See merge request !389
parents be831914 12b3c4cc
......@@ -21,9 +21,11 @@
<meta name="msapplication-square150x150logo" content="{% static "images/browser_icons/icon-mediumtile.png" %}">
<meta name="msapplication-wide310x150logo" content="{% static "images/browser_icons/icon-widetile.png" %}">
<meta name="msapplication-square310x310logo" content="{% static "images/browser_icons/icon-largetile.png" %}">
<meta property="og:image" content="{% if request.is_secure %}https://{% else %}http://{% endif %}{{ request.get_host }}{% static "images/browser_icons/icon-largetile.png" %}" />
<meta property="og:type" content="website" />
<meta property="og:title" content="{% trans 'Study Association Thalia' %}" />
<meta property="og:title" content="{% block opengraph_title %}{% trans 'Study Association Thalia' %}{% endblock %}" />
{% block opengraph %}{% endblock %}
<!-- css stylesheets -->
{% block css_head %}
......
......@@ -2,6 +2,7 @@
{% load i18n %}
{% block title %}Error — {{ block.super }}{% endblock %}
{% block opengraph_title %}Error — {{ block.super }}{% endblock %}
{% block body %}
<h1>{% blocktrans %}Error{% endblocktrans %}</h1>
......
......@@ -2,6 +2,7 @@
{% load i18n %}
{% block title %}{% trans "Association" %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "Association" %} — {{ block.super }}{% endblock %}
{% block body %}
<h1>{% trans "Thalia, the study association of Computer Science and Information Science"|upper %}</h1>
......
......@@ -2,6 +2,7 @@
{% load i18n %}
{% block title %}{% trans "Become a Member" %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "Become a Member" %} — {{ block.super }}{% endblock %}
{% block body %}
<h1>{% trans "Become a Member" %}</h1>
......
......@@ -2,6 +2,7 @@
{% load i18n %}
{% block title %}{% trans "Become active" %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "Become active" %} — {{ block.super }}{% endblock %}
{% block body %}
<h1>{% trans "Become active" %}</h1>
......
......@@ -2,6 +2,7 @@
{% load i18n %}
{% block title %}{% trans "Contact" %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "Contact" %} — {{ block.super }}{% endblock %}
{% block body %}
<h1>{% trans "Contact" %}</h1>
......
......@@ -2,6 +2,7 @@
{% load i18n %}
{% block title %}{% trans "for members"|capfirst %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "for members"|capfirst %} — {{ block.super }}{% endblock %}
{% block body %}
<h1>{% trans "for members"|upper %}</h1>
......
......@@ -2,6 +2,7 @@
{% load i18n %}
{% block title %}{% trans "Sister Associations" %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "Sister Associations" %} — {{ block.super }}{% endblock %}
{% block body %}
<h1>{% trans "Associations of the Radboud University Science Faculty" %}</h1>
......
......@@ -2,6 +2,7 @@
{% load i18n static %}
{% block title %}{% trans "styleguide"|capfirst %} — {% trans "for members"|capfirst %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "styleguide"|capfirst %} — {% trans "for members"|capfirst %} — {{ block.super }}{% endblock %}
{% block body %}
<h1>{% trans "styleguide"|capfirst %}</h1>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment