Skip to content

Commit

Permalink
use translated notes field in meta block
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Mar 28, 2024
1 parent 7926c62 commit c7a4047
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/templates/package/read_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

{% block head_extras -%}
{{ super() }}
{% set description = h.markdown_extract(pkg.notes, extract_length=200)|forceescape %}
{% set description = h.markdown_extract(
h.get_translated(pkg, 'notes'), extract_length=200) %}
<meta property="og:title" content="{{ h.dataset_display_name(pkg) }} - {{ g.site_title }}">
<meta property="og:description" content="{{ description|forceescape|trim }}">
{% endblock -%}
Expand Down

0 comments on commit c7a4047

Please sign in to comment.