mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 13:21:35 +01:00
feat: make extra.social_image config optional
This commit is contained in:
parent
0b07957c59
commit
04a00cb19c
1 changed files with 9 additions and 1 deletions
|
|
@ -36,7 +36,15 @@
|
|||
<meta property="og:site_name" content="{{ config.title }}" />
|
||||
<meta property="og:description" content="{{ description }}" />
|
||||
<meta property="og:url" content="{{ page.permalink }}" />
|
||||
{% set image = page.extra.cover_image | default(value=config.extra.social_image) %}
|
||||
{% if page.extra.cover_image %}
|
||||
<!---->
|
||||
{% set image = page.extra.cover_image %}
|
||||
<!---->
|
||||
{% elif config.extra.social_image %}
|
||||
<!---->
|
||||
{% set image = config.extra.social_image %}
|
||||
<!---->
|
||||
{% endif %}
|
||||
<!---->
|
||||
{% if image %}
|
||||
<meta property="og:image" content="{{ get_url(path=image) }}" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue