Skip to content

Commit

Permalink
Merge 06b9743 into 0a5577c
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasGe committed Jun 2, 2020
2 parents 0a5577c + 06b9743 commit 54a2f52
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion atramhasis/templates/concept.jinja2
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{% extends 'layout.jinja2' %}

{% block head %}
{{ super() }}
<meta name="og:type" content="website" />
<meta name="og:url" content="{{ request.route_url('concept', scheme_id=scheme_id, c_id=concept.concept_id) }}" />
<meta name="og:title" content="{{ concept.label(request.locale_name).label|safe }}" />
{% if concept.notes|length > 0 %}
<meta name="og:description" content="{{ concept.notes[0]|safe }}" />
{% endif %}
{% endblock %}
{% block html_title %}{{ concept.label(request.locale_name).label|title }}{% endblock %}

{% from "macros.jinja2" import
Expand Down
10 changes: 9 additions & 1 deletion atramhasis/templates/conceptscheme.jinja2
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{% extends 'layout.jinja2' %}

{% block head %}
{{ super() }}
<meta name="og:type" content="website" />
<meta name="og:url" content="{{ request.route_url('conceptscheme', scheme_id=conceptscheme.scheme_id) }}" />
<meta name="og:title" content="{{ conceptscheme.title }}" />
{% if conceptscheme.notes|length > 0 %}
<meta name="og:description" content="{{ conceptscheme.notes[0]|safe }}" />
{% endif %}
{% endblock %}
{% block html_title %}{{ conceptscheme.title }}{% endblock %}

{% from "macros.jinja2" import
Expand Down

0 comments on commit 54a2f52

Please sign in to comment.