Skip to content

Commit

Permalink
fixup notes
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-bryson committed Apr 8, 2024
1 parent 0b0e594 commit 502615c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ckanext/datagovtheme/templates/snippets/link_preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@

{% if pkg %}
{% set dataset = pkg.title or pkg.name or "Data.gov Dataset" %}
{% if pkg.organization %}
{% set organization = pkg.organization.title or pkg.organization.name or "Data.gov" %}
{% endif %}
{% set organization = pkg.organization.title or pkg.organization.name or "Data.gov" %}
{% set notes = h.markdown_extract(pkg.notes, 180) or "The Home of the U.S. Government's Open Data" %}

<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://data.gov">
<meta property="og:type" content="website">
<meta property="og:title" content="Data.gov Home - Data.gov">
<meta property="og:description" content="The Home of the U.S. Government's Open Data">
<meta property="og:title" content="{{ f'{organization} - {dataset}' }}">
<meta property="og:description" content="{{ notes }}">
<meta property="og:image" content="{{ img }}">

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="data.gov">
<meta property="twitter:url" content="https://data.gov">
<meta name="twitter:title" content="Data.gov Home - Data.gov">
<meta name="twitter:description" content="The Home of the U.S. Government's Open Data">
<meta name="twitter:title" content="{{ f'{organization} - {dataset}' }}">
<meta name="twitter:description" content="{{ notes }}">
<meta name="twitter:image" content="{{ img }}">
{% else %}
<!-- Facebook Meta Tags -->
Expand Down

0 comments on commit 502615c

Please sign in to comment.