mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-23 03:41:03 +00:00
feat(video): Use video thumbnail for social preview
This commit is contained in:
@@ -21,16 +21,20 @@ definitions:
|
|||||||
- &logo >-
|
- &logo >-
|
||||||
theme/assets/brand/logos/svg/logo/privacy-guides-logo-notext-colorbg.svg
|
theme/assets/brand/logos/svg/logo/privacy-guides-logo-notext-colorbg.svg
|
||||||
|
|
||||||
|
- &thumbnail >-
|
||||||
|
{%- if page.meta.get("thumbnail") -%}
|
||||||
|
{{ config.site_url }}{{ page.meta.get("thumbnail") | replace("https://", "assets/external/") }}
|
||||||
|
{%- else -%}
|
||||||
|
{{ image.url }}
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
# Meta tags
|
# Meta tags
|
||||||
tags:
|
tags:
|
||||||
# Open Graph
|
# Open Graph
|
||||||
og:type: video.other
|
og:type: video.other
|
||||||
og:title: *page_title
|
og:title: *page_title
|
||||||
og:description: *page_description
|
og:description: *page_description
|
||||||
og:image: "{{ image.url }}"
|
og:image: *thumbnail
|
||||||
og:image:type: "{{ image.type }}"
|
|
||||||
og:image:width: "{{ image.width }}"
|
|
||||||
og:image:height: "{{ image.height }}"
|
|
||||||
og:url: "{{ page.canonical_url }}"
|
og:url: "{{ page.canonical_url }}"
|
||||||
|
|
||||||
# Video
|
# Video
|
||||||
@@ -50,7 +54,7 @@ tags:
|
|||||||
twitter:card: summary_large_image
|
twitter:card: summary_large_image
|
||||||
twitter:title: *page_title
|
twitter:title: *page_title
|
||||||
twitter:description: *page_description
|
twitter:description: *page_description
|
||||||
twitter:image: "{{ image.url }}"
|
twitter:image: *thumbnail
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Specification
|
# Specification
|
||||||
|
Reference in New Issue
Block a user