Skip to content

Commit

Permalink
fix: Put meta description in meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 25, 2024
1 parent a530b46 commit b5d35fa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
4 changes: 1 addition & 3 deletions extension_explorer/templates/extension_codelists.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

{% block title %}{{ _("%(name)s — Codelists — OCDS Extension Explorer", name=extension.name[lang]) }}{% endblock %}

{% block meta_description %}
{{ _('Documentation of the codes in the %(name)s extension', name=extension.name[lang]) }}
{% endblock %}
{% block description %}{{ _('Documentation of the codes in the %(name)s extension', name=extension.name[lang]) }}{% endblock %}

{% block nav_codelists %}
<div class="ee-toc-item active">
Expand Down
4 changes: 1 addition & 3 deletions extension_explorer/templates/extension_documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
</style>
{% endblock %}

{% block meta_description %}
{{ extension.description[lang] }}
{% endblock %}
{% block description %}{{ extension.description[lang] }}{% endblock %}

{% block nav_documentation %}
<div class="ee-toc-item active">
Expand Down
4 changes: 1 addition & 3 deletions extension_explorer/templates/extension_schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

{% block title %}{{ _("%(name)s — Schema — OCDS Extension Explorer", name=extension.name[lang]) }}{% endblock %}

{% block meta_description %}
{{ _('Documentation of the fields in the %(name)s extension', name=extension.name[lang]) }}
{% endblock %}
{% block description %}{{ _('Documentation of the fields in the %(name)s extension', name=extension.name[lang]) }}{% endblock %}

{% block nav_schema %}
<div class="ee-toc-item active">
Expand Down
3 changes: 1 addition & 2 deletions extension_explorer/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">

<title>{% block title %}{% endblock %}</title>
<meta name="description" content="{% block description %}{% endblock %}">
<script src="https://cdn.usefathom.com/script.js" data-site="UWZRRLGK" defer data-excluded-domains="localhost,127.0.0.1,0.0.0.0"></script>
{% for lang, name in langs.items() %}
<link rel="alternate" hreflang="{{ lang }}" href="{{ change_lang_in_url(lang) }}">
{% endfor %}
{% block meta_description %}
{% endblock %}
{% block extra_head %}
{% endblock %}
</head>
Expand Down

0 comments on commit b5d35fa

Please sign in to comment.