pidgin/nest

Parents 65eba9813d52
Children 837d728b48d1
Enable OpenGraph and Twitter Cards on all pages and add relevant fields to default archetypes

Testing Done:
Checked on local, confirmed in source that tags appear and populate properly

Bugs closed: NEST-14

Reviewed at https://reviews.imfreedom.org/r/139/
--- a/hugo/archetypes/default.md Thu Sep 24 21:10:05 2020 -0500
+++ b/hugo/archetypes/default.md Thu Oct 01 20:19:38 2020 -0500
@@ -2,5 +2,9 @@
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
replaces: []
+description: "" # Leave blank to use the auto summary
+audio: [] # Links to any audio files on the page
+images: [] # Leave empty to default to the Pidgin logo
+series: [] # Appears as "See also" pages on Facebook
---
--- a/hugo/archetypes/post.md Thu Sep 24 21:10:05 2020 -0500
+++ b/hugo/archetypes/post.md Thu Oct 01 20:19:38 2020 -0500
@@ -5,6 +5,10 @@
hidden: false
catagories:
- blog
+description: "" # Leave blank to use the auto summary
+audio: [] # Links to any audio files in the post
+images: [] # Leave empty to default to the Pidgin logo
+series: [] # Appears as "See also" pages on Facebook
---
Lorem ipsum
--- a/hugo/config.toml Thu Sep 24 21:10:05 2020 -0500
+++ b/hugo/config.toml Thu Oct 01 20:19:38 2020 -0500
@@ -10,6 +10,10 @@
editURL = "https://keep.imfreedom.org/pidgin/nest/file/default/hugo/content/"
disableShortcutsTitle = true
+# These enable Open Graph and Twitter cards
+description = "Pidgin is a universal chat client, allowing you to consolidate all your different messaging apps into a single tool."
+images = ["/images/pidgin-circle-256.png"]
+
# These manage the notification banner. When finished, please comment them out
# The code is used in the cookie to prevent showing the alert once closed
notificationMessage = "We've launched the new site. Think we're missing something?<br /><a href=\"/posts/2020-01-nest-launch/\">Read the blog post</a> or <a href=\"https://old.pidgin.im\">Go to the old site</a>"
@@ -27,6 +31,10 @@
[languages.es]
languageName = "Spanish"
+[taxonomies]
+ # Used by Open Graph
+ series = "series"
+
# Shortcuts
[[menu.shortcuts]]
name = "<i class='fas fa-fw fa-code'></i> Repositories"
--- a/hugo/layouts/partials/custom-header.html Thu Sep 24 21:10:05 2020 -0500
+++ b/hugo/layouts/partials/custom-header.html Thu Oct 01 20:19:38 2020 -0500
@@ -29,3 +29,6 @@
<meta name="msapplication-TileColor" content="#8451A1">
<meta name="msapplication-TileImage" content="/favicon/favicon-144.png">
<meta name="msapplication-config" content="favicon/browserconfig.xml">
+
+{{ template "_internal/opengraph.html" . }}
+{{ template "_internal/twitter_cards.html" . }}