Commit 4a384855 authored by Carl Schwan's avatar Carl Schwan 🚴

Fix twitter card

parent 9008885a
...@@ -164,4 +164,7 @@ params: ...@@ -164,4 +164,7 @@ params:
socialShare: false socialShare: false
useHLJS: true useHLJS: true
wordCount: false wordCount: false
images:
- /thumbnail.png
description: The KDE community is an international team developing and distributing Open Source software.
title: KDE title: KDE
...@@ -2,4 +2,6 @@ ...@@ -2,4 +2,6 @@
title: KDE Community Home title: KDE Community Home
plasma: Plasma plasma: Plasma
plasma_desc: The next generation desktop for Linux plasma_desc: The next generation desktop for Linux
images:
- /thumbnail.png
--- ---
...@@ -7,31 +7,10 @@ ...@@ -7,31 +7,10 @@
{{ $title := .Title }} {{ $title := .Title }}
{{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $title }}" />{{ end }} {{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $title }}" />{{ end }}
<!-- Facebook open graph configuration -->
<meta property="og:title" content="{{ .Title }} : KDE.org">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:description" content="KDE is an open community of friendly people who want to create a world in which everyone has control over their digital life and enjoys freedom and privacy.">
<meta property="og:site_name" content="KDE.org">
<meta property="og:image" content="https://kde.org/stuff/clipart/logo/kde-logo-white-blue-rounded-128x128.png">
<!-- Twitter card configuration --> {{ template "_internal/opengraph.html" . }}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@kdecommunity">
<meta name="twitter:title" content="{{ .Title }} : KDE.org">
<meta name="twitter:description" content="KDE is an open community of friendly people who want to create a world in which everyone has control over their digital life and enjoys freedom and privacy.">
<meta name="twitter:image" content="https://kde.org/stuff/clipart/logo/kde-logo-white-blue-rounded-128x128.png">
<!-- schema.org metadata --> {{ template "_internal/twitter_cards.html" . }}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://kde.org/",
"name": "KDE",
"description": "KDE is an open community of friendly people who want to create a world in which everyone has control over their digital life and enjoys freedom and privacy."
}
</script>
<!-- Icons --> <!-- Icons -->
<link rel="apple-touch-icon" href="/aether/media/180x180.png"> <link rel="apple-touch-icon" href="/aether/media/180x180.png">
......
...@@ -70,7 +70,7 @@ def import_frontmatter(data, _): ...@@ -70,7 +70,7 @@ def import_frontmatter(data, _):
has_translations = import_frontmatter(item, _) or has_translations has_translations = import_frontmatter(item, _) or has_translations
elif isinstance(data, dict): elif isinstance(data, dict):
for key in data: for key in data:
if key in ['layout', 'date', 'type', 'publishDate', 'version', 'release', 'qtversion', 'changelog', 'sassFiles', 'link', 'image', 'externi18n', 'draft', 'color', 'sassFile', 'alias', 'laptop']: if key in ['layout', 'date', 'type', 'publishDate', 'version', 'release', 'qtversion', 'changelog', 'sassFiles', 'link', 'image', 'externi18n', 'draft', 'color', 'sassFile', 'alias', 'laptop', 'images']:
continue continue
if isinstance(data[key], str): if isinstance(data[key], str):
if data[key] != _(data[key]): if data[key] != _(data[key]):
...@@ -102,7 +102,7 @@ def extract_frontmatter(data, pot, filename): ...@@ -102,7 +102,7 @@ def extract_frontmatter(data, pot, filename):
extract_frontmatter(item, pot, filename) extract_frontmatter(item, pot, filename)
elif isinstance(data, dict): elif isinstance(data, dict):
for key in data: for key in data:
if key not in ['layout', 'date', 'type', 'publishDate', 'version', 'release', 'qtversion', 'changelog', 'sassFiles', 'link', 'image', 'externi18n', 'draft', 'color', 'sassFile', 'alias', 'laptop']: if key not in ['layout', 'date', 'type', 'publishDate', 'version', 'release', 'qtversion', 'changelog', 'sassFiles', 'link', 'image', 'externi18n', 'draft', 'color', 'sassFile', 'alias', 'laptop', 'images']:
extract_frontmatter(data[key], pot, filename) extract_frontmatter(data[key], pot, filename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment