We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b07957 commit 04a00cbCopy full SHA for 04a00cb
templates/partials/head.html
@@ -36,7 +36,15 @@
36
<meta property="og:site_name" content="{{ config.title }}" />
37
<meta property="og:description" content="{{ description }}" />
38
<meta property="og:url" content="{{ page.permalink }}" />
39
- {% set image = page.extra.cover_image | default(value=config.extra.social_image) %}
+ {% if page.extra.cover_image %}
40
+ <!---->
41
+ {% set image = page.extra.cover_image %}
42
43
+ {% elif config.extra.social_image %}
44
45
+ {% set image = config.extra.social_image %}
46
47
+ {% endif %}
48
<!---->
49
{% if image %}
50
<meta property="og:image" content="{{ get_url(path=image) }}" />
0 commit comments