Skip to content

Commit

Permalink
Merge pull request #20 from azzamsa/twitter-card
Browse files Browse the repository at this point in the history
fix: twitter and og card image not displayed
  • Loading branch information
aaranxu committed Dec 4, 2021
2 parents 63286ec + ceefdae commit 7d1ce1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/macros/head.html
Expand Up @@ -62,7 +62,7 @@

{% if config.extra.open.enable %}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{ config.extra.open.image }}">
<meta name="twitter:image" content="{{ config.base_url | safe }}/{{ config.extra.open.image }}">
<meta name="twitter:title" content="{{ title }}">
<meta name="twitter:description" content="{{ description }}">
<meta name="twitter:site" content="@{{ config.extra.open.twitter_site }}">
Expand All @@ -82,7 +82,7 @@
<meta property="og:image" content="{{ get_url(path=image) | safe }}">
{% endfor %}
{% elif config.extra.open.image %}
<meta property="og:image" content="{{ config.extra.open.image }}">
<meta property="og:image" content="{{ config.base_url | safe }}/{{ config.extra.open.image }}">
{% endif %}

<meta property="og:updated_time" content="{{ updated_time }}">
Expand Down

0 comments on commit 7d1ce1b

Please sign in to comment.