community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From turbas...@apache.org
Subject [comdev-site] branch master updated: Add Open Graph metadata for better previews in social media (#17)
Date Mon, 16 Nov 2020 15:46:29 GMT
This is an automated email from the ASF dual-hosted git repository.

turbaszek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/comdev-site.git


The following commit(s) were added to refs/heads/master by this push:
     new dc4ae13  Add Open Graph metadata for better previews in social media (#17)
dc4ae13 is described below

commit dc4ae13110d9bcfdee5c3ce818e1ed341c257733
Author: Tomek Urbaszek <turbaszek@gmail.com>
AuthorDate: Mon Nov 16 16:41:59 2020 +0100

    Add Open Graph metadata for better previews in social media (#17)
    
    Add Open Graph metadata for better previews in social media
---
 config.toml                  |  10 ++++++++++
 layouts/_default/baseof.html |   1 +
 static/images/aceu19_1.jpg   | Bin 0 -> 159826 bytes
 static/images/aceu19_2.jpg   | Bin 0 -> 150738 bytes
 4 files changed, 11 insertions(+)

diff --git a/config.toml b/config.toml
index 4d52d22..3cacbfa 100644
--- a/config.toml
+++ b/config.toml
@@ -33,5 +33,15 @@ fractions = false
 date = ["date", ":filename", "publishDate", "lastmod"]
 
 [params]
+# Source Code repository section
 repositoryUrl = "https://github.com/apache/comdev-site"
 repositorySourceBranch = "master"
+
+# Open Graph section
+title = "Apache Community Development"
+description = "The Community Development project creates and provides tools, processes, and
advice to help open-source software projects improve their own community health."
+images = ["images/aceu19_1.jpg", "images/aceu19_2.jpg"] # Open graph images are placed in
`static/images`
+tags = ["OpenSource", "Community", "Apache Software Foundation"]
+
+[social]
+twitter = "ApacheCommunity"
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index f7f5f49..844c334 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -21,6 +21,7 @@
   <meta name="description" content="Apache Community Development"/>
   <meta name="keywords" content="apache, apache community, community development, opensource"/>
   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"
/>
+  {{ template "_internal/opengraph.html" . }}
 
   <title>Apache Community Development - {{ .Title }}</title>
   <link rel="shortcut icon" href="images/favicon.ico">
diff --git a/static/images/aceu19_1.jpg b/static/images/aceu19_1.jpg
new file mode 100644
index 0000000..a3109cd
Binary files /dev/null and b/static/images/aceu19_1.jpg differ
diff --git a/static/images/aceu19_2.jpg b/static/images/aceu19_2.jpg
new file mode 100644
index 0000000..8e88457
Binary files /dev/null and b/static/images/aceu19_2.jpg differ


Mime
View raw message