mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-07-01 17:22:39 +00:00
fix: Update OpenGraph tags (#3036)
This commit is contained in:
@ -118,7 +118,7 @@
|
||||
<div class="md-nav__link" title="Date published">
|
||||
{% include ".icons/material/calendar.svg" %}
|
||||
<time
|
||||
datetime="{{ page.config.date.created }}"
|
||||
datetime="{{ page.config.date.created.strftime('%Y-%m-%dT%H:%M:%S+00:00') }}"
|
||||
class="md-ellipsis"
|
||||
itemprop="datePublished"
|
||||
>
|
||||
@ -133,7 +133,7 @@
|
||||
<div class="md-nav__link" title="Date last updated">
|
||||
{% include ".icons/material/calendar-clock.svg" %}
|
||||
<time
|
||||
datetime="{{ page.config.date.updated }}"
|
||||
datetime="{{ page.config.date.updated.strftime('%Y-%m-%dT%H:%M:%S+00:00') }}"
|
||||
class="md-ellipsis"
|
||||
itemprop="dateModified"
|
||||
>
|
||||
|
@ -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"
|
||||
|
@ -39,7 +39,7 @@
|
||||
"thumbnailUrl": [
|
||||
"{{ page.meta.thumbnail }}"
|
||||
],
|
||||
"uploadDate": "{{ page.meta.date.created }}",
|
||||
"uploadDate": "{{ page.meta.date.created.strftime('%Y-%m-%dT%H:%M:%S+00:00') }}",
|
||||
"embedUrl": "{{ page.meta.embed }}"
|
||||
}
|
||||
</script>
|
||||
@ -121,7 +121,7 @@
|
||||
<div class="md-nav__link">
|
||||
{% include ".icons/material/calendar.svg" %}
|
||||
<time
|
||||
datetime="{{ page.config.date.created }}"
|
||||
datetime="{{ page.config.date.created.strftime('%Y-%m-%dT%H:%M:%S+00:00') }}"
|
||||
class="md-ellipsis"
|
||||
>
|
||||
{{- page.config.date.created | date -}}
|
||||
@ -135,7 +135,7 @@
|
||||
<div class="md-nav__link">
|
||||
{% include ".icons/material/calendar-clock.svg" %}
|
||||
<time
|
||||
datetime="{{ page.config.date.updated }}"
|
||||
datetime="{{ page.config.date.updated.strftime('%Y-%m-%dT%H:%M:%S+00:00') }}"
|
||||
class="md-ellipsis"
|
||||
>
|
||||
{{- page.config.date.updated | date -}}
|
||||
|
Reference in New Issue
Block a user