Skip to content

Commit

Permalink
Merge pull request #8135 from ckan/translate-notes-meta
Browse files Browse the repository at this point in the history
use translated notes field in package meta block
  • Loading branch information
tino097 committed Apr 3, 2024
2 parents d124e33 + c7a4047 commit 7ca456d
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 7ca456d

Please sign in to comment.