mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-03 01:52:39 +00:00
fix: Update OpenGraph tags (#3036)
This commit is contained in:
@ -58,9 +58,9 @@ definitions:
|
||||
|
||||
- &updated_time >-
|
||||
{% if page.config.date.updated %}
|
||||
{{- page.config.date.updated.strftime('%Y-%m-%d') -}}
|
||||
{{- page.config.date.updated.strftime('%Y-%m-%dT%H:%M:%S+00:00') -}}
|
||||
{% else %}
|
||||
{{- page.config.date.created.strftime('%Y-%m-%d') -}}
|
||||
{{- page.config.date.created.strftime('%Y-%m-%dT%H:%M:%S+00:00') -}}
|
||||
{% endif %}
|
||||
|
||||
- &author_mastodon >-
|
||||
@ -85,6 +85,8 @@ definitions:
|
||||
# Meta tags
|
||||
tags:
|
||||
# Open Graph
|
||||
og:site_name: *site_name
|
||||
og:locale: "en_US"
|
||||
og:type: article
|
||||
og:title: *page_title
|
||||
og:description: *page_description
|
||||
@ -95,7 +97,7 @@ tags:
|
||||
og:url: "{{ page.canonical_url }}"
|
||||
|
||||
# Blog
|
||||
article:published_time: "{{ page.config.date.created.strftime('%Y-%m-%d') }}"
|
||||
article:published_time: "{{ page.config.date.created.strftime('%Y-%m-%dT%H:%M:%S+00:00') }}"
|
||||
article:modified_time: *updated_time
|
||||
article:section: "{{ page.categories[0].title }}"
|
||||
article:author: "https://www.privacyguides.org/articles/{{ page.authors[0].url }}"
|
||||
@ -110,6 +112,11 @@ tags:
|
||||
twitter:title: *page_title
|
||||
twitter:description: *page_description
|
||||
twitter:image: "{{ image.url }}"
|
||||
twitter:image:width: "{{ image.width }}"
|
||||
twitter:image:height: "{{ image.height }}"
|
||||
twitter:image:alt: "Privacy Guides: Trusted, non-profit privacy and cybersecurity resources."
|
||||
twitter:label1: "Written by"
|
||||
twitter:data1: "{{ page.authors[0].name }}"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Specification
|
||||
|
@ -70,6 +70,7 @@ definitions:
|
||||
# Meta tags
|
||||
tags:
|
||||
# Open Graph
|
||||
og:site_name: *site_name
|
||||
og:type: website
|
||||
og:title: *page_title_with_site_name
|
||||
og:description: *page_description
|
||||
@ -88,6 +89,8 @@ tags:
|
||||
twitter:title: *page_title_with_site_name
|
||||
twitter:description: *page_description
|
||||
twitter:image: "{{ image.url }}"
|
||||
twitter:image:width: "{{ image.width }}"
|
||||
twitter:image:height: "{{ image.height }}"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Specification
|
||||
|
@ -44,6 +44,7 @@ tags:
|
||||
og:video:type: "text/html"
|
||||
og:video:width: "560"
|
||||
og:video:height: "315"
|
||||
video:release_date: "{{ page.config.date.created.strftime('%Y-%m-%dT%H:%M:%S+00:00') }}"
|
||||
|
||||
# Mastodon
|
||||
fediverse:creator: "@privacyguides@neat.computer"
|
||||
|
Reference in New Issue
Block a user