Skip to content

Commit

Permalink
template: add open graph titles
Browse files Browse the repository at this point in the history
with type, site_name and image
  • Loading branch information
codeurimpulsif committed May 26, 2024
1 parent 0c2a397 commit 80bfb0e
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions exodus/analysis_query/templates/query_error.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "base/base.html"%}
{% block head %}
<meta property="og:title" content="{% trans "New analysis" %}">
<title>{% trans "New analysis" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
1 change: 1 addition & 0 deletions exodus/analysis_query/templates/query_upload.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
<meta property="og:title" content="{% trans "New analysis" %}">
<title>{% trans "New analysis" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
1 change: 1 addition & 0 deletions exodus/analysis_query/templates/query_wait.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
<meta property="og:title" content="{% trans "New analysis" %}">
<title>{% trans "New analysis" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
1 change: 1 addition & 0 deletions exodus/reports/templates/report_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
{% if report %}
<meta property="og:title" content="{% trans "Report for" %} {{ report.application.handle }} {{ report.application.version }}">
<title>{% trans "Report for" %} {{ report.application.handle }} {{ report.application.version }} - εxodus</title>
{% endif %}
{% endblock %}
Expand Down
1 change: 1 addition & 0 deletions exodus/reports/templates/reports_home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
<meta property="og:title" content="{% trans "Reports" %}">
<title>{% trans "Reports" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
2 changes: 2 additions & 0 deletions exodus/reports/templates/reports_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
{% get_current_language as LANGUAGE_CODE %}
{% block head %}
{% if handle %}
<meta property="og:title" content="{% trans "Reports list for" %} {{ handle }}">
<title>{% trans "Reports list for" %} {{ handle }} - εxodus</title>
{% else %}
<meta property="og:title" content="{% trans "Reports list" %}">
<title>{% trans "Reports list" %} - εxodus</title>
{% endif %}
{% endblock %}
Expand Down
1 change: 1 addition & 0 deletions exodus/trackers/templates/stats_details.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends "base/base.html" %}
{% load i18n %}
{% block head %}
<meta property="og:title" content="{% trans "Statistics" %}">
<title>{% trans "Statistics" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
1 change: 1 addition & 0 deletions exodus/trackers/templates/tracker_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% load i18n %}
{% load markdown %}
{% block head %}
<meta property="og:title" content="{% trans "Tracker profile for" %} {{ tracker.name }}">
<title>{% trans "Tracker profile for" %} {{ tracker.name }} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
1 change: 1 addition & 0 deletions exodus/trackers/templates/trackers_list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends "base/base.html"%}
{% load i18n %}
{% block head %}
<meta property="og:title" content="{% trans "Trackers" %}">
<title>{% trans "Trackers" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
4 changes: 4 additions & 0 deletions exodus/web/templates/base/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
<script src="{% static "js/bootstrap.min.js" %}"></script>
<script src="{% static "js/handlebars.min.js" %}"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:type" content="article">
<meta property="og:site_name" content="εxodus">
<meta property="og:image" content="{{ request.scheme }}://{{ request.get_host }}{% static "img/logo_purple_without_text.png" %}">
{% block head %}
<meta property="og:title" content="εxodus">
<title>εxodus</title>
{% endblock %}
</head>
Expand Down
1 change: 1 addition & 0 deletions exodus/web/templates/base/home.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends "base/base.html"%}
{% load i18n %}
{% block head %}
<meta property="og:title" content="{% trans "Home" %}">
<title>{% trans "Home" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
1 change: 1 addition & 0 deletions exodus/web/templates/base/next.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% load i18n %}
{% load static %}
{% block head %}
<meta property="og:title" content="{% trans "What's next?" %}">
<title>{% trans "What's next?" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
1 change: 1 addition & 0 deletions exodus/web/templates/base/organization.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% load i18n %}
{% load static %}
{% block head %}
<meta property="og:title" content="{% trans "The organization" %}">
<title>{% trans "The organization" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
1 change: 1 addition & 0 deletions exodus/web/templates/base/permissions.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% load i18n %}
{% load static %}
{% block head %}
<meta property="og:title" content="{% trans "Permissions" %}">
<title>{% trans "Permissions" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
1 change: 1 addition & 0 deletions exodus/web/templates/base/trackers.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% load i18n %}
{% load static %}
{% block head %}
<meta property="og:title" content="{% trans "Trackers" %}">
<title>{% trans "Trackers" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down
1 change: 1 addition & 0 deletions exodus/web/templates/base/understand.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% load i18n %}
{% load static %}
{% block head %}
<meta property="og:title" content="{% trans "Better understand" %}">
<title>{% trans "Better understand" %} - εxodus</title>
{% endblock %}
{% block content %}
Expand Down

0 comments on commit 80bfb0e

Please sign in to comment.