This is an automated email from the ASF dual-hosted git repository.
bartmaer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop-website.git
The following commit(s) were added to refs/heads/master by this push:
new 5a86bb9 HOP-3264 opengraph page or article previews, initial version
new 6dc49ac Merge pull request #82 from bamaer/article-preview
5a86bb9 is described below
commit 5a86bb9c4ca85b6fc8d826574f72d82e41ee827d
Author: Bart Maertens <[email protected]>
AuthorDate: Sat Sep 11 13:24:42 2021 +0200
HOP-3264 opengraph page or article previews, initial version
---
antora-ui-hop/src/partials/head-meta.hbs | 9 +++++++++
config.toml | 5 ++++-
content/blog/2021/08/hop-0.99/index.adoc | 1 +
content/blog/2021/09/roundup-2021-08/index.adoc | 2 ++
layouts/partials/header.html | 4 +++-
static/img/hop-logo.png | Bin 0 -> 11108 bytes
6 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/antora-ui-hop/src/partials/head-meta.hbs
b/antora-ui-hop/src/partials/head-meta.hbs
index 1aef0af..59d20da 100644
--- a/antora-ui-hop/src/partials/head-meta.hbs
+++ b/antora-ui-hop/src/partials/head-meta.hbs
@@ -1 +1,10 @@
{{!-- Add additional meta tags here --}}
+<meta property="og:title" content="{{{detag (or page.title
defaultPageTitle)}}}{{#if site.title}} :: {{site.title}}{{/if}}">
+{{#if page.description}}
+<meta name="description" content="{{page.description}}">
+{{else}}
+<meta property="og:description" content="Apache Hop (Incubating) - Hop
Orchestration Platform">
+{{/if}}
+<meta property="og:type" content="article">
+<meta property="og:url" content="{{page.canonicalUrl}}">
+<meta property="og:image" content="https://hop.apache.org/img/hop-logo.png">
diff --git a/config.toml b/config.toml
index 21921c5..20e57e5 100644
--- a/config.toml
+++ b/config.toml
@@ -11,9 +11,12 @@ enableRobotsTXT = true
unsafe= true
[params]
+ openGraph = true
+ images = ['https://hop.apache.org/img/hop-logo.png']
socialProfiles = ["https://twitter.com/ApacheHop"]
organizationLogo = "/img/hop-logo.svg"
- organizationDescription = "Hop"
+ organizationDescription = "Apache Hop (Incubating) - Hop Orchestration
Platform"
+ Description = "Apache Hop (Incubating) - Hop Orchestration Platform"
[Author]
name = "The Hop Team"
diff --git a/content/blog/2021/08/hop-0.99/index.adoc
b/content/blog/2021/08/hop-0.99/index.adoc
index 1eb4d0a..f18791c 100644
--- a/content/blog/2021/08/hop-0.99/index.adoc
+++ b/content/blog/2021/08/hop-0.99/index.adoc
@@ -4,6 +4,7 @@ date: 2021-08-07T07:59:56+02:00
authors: ["bamaer"]
categories: ["Release", "Announcement", "Apache Hop"]
preview: "Apache Hop releases 0.99, our last stop before Hop 1.0"
+description: "Apache Hop releases 0.99, our last stop before Hop 1.0"
draft: false
---
diff --git a/content/blog/2021/09/roundup-2021-08/index.adoc
b/content/blog/2021/09/roundup-2021-08/index.adoc
index 78b535f..939604c 100644
--- a/content/blog/2021/09/roundup-2021-08/index.adoc
+++ b/content/blog/2021/09/roundup-2021-08/index.adoc
@@ -4,6 +4,8 @@ date: 2021-09-02T07:59:56+02:00
authors: ["bamaer"]
categories: ["Roundup", "Apache Hop"]
preview: "Roundup July, August 2021"
+description: "The Apache Hop (Incubating) recap for July and August 2020: 0.99
released, Dropbox VFS support, ongoing bug hunt and community growth"
+image: "http://knowbi:1313/_/img/hop-logo.svg"
draft: false
---
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index b39a451..8a763fa 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -3,18 +3,20 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {{ template "_internal/opengraph.html" . }}
<link rel="icon" type="image/png" href="{{ "favicon-196x196.png" | relURL
}}" sizes="196x196">
+ <link rel="stylesheet" href="{{ path.Join "_" (index .Site.Data
"rev-manifest" "css/site.css") | relURL }}">
<meta name="application-name" content="Apache Hop (Incubating)">
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}">
<title>{{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end
}}</title>
<link rel="canonical" href="{{ .RelPermalink }}">
+ {{ template "_internal/opengraph.html". }}
{{ if .Description}}
<meta name="description" content="{{ .Description }}">
{{ end }}
{{ if .Keywords}}
<meta name="keywords" content="{{ .Keywords }}">
{{ end }}
- <link rel="stylesheet" href="{{ path.Join "_" (index .Site.Data
"rev-manifest" "css/site.css") | relURL }}">
</head>
<body class="{{ if .Page.IsHome }}homepage {{ end }}article">
diff --git a/static/img/hop-logo.png b/static/img/hop-logo.png
new file mode 100644
index 0000000..90f0ed4
Binary files /dev/null and b/static/img/hop-logo.png differ