This is an automated email from the ASF dual-hosted git repository.
rmuir pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-site.git
The following commit(s) were added to refs/heads/main by this push:
new 9711afa add og metadata for link previews
9711afa is described below
commit 9711afa0fa67121693d04116ec2d42babaa9a9df
Author: Robert Muir <[email protected]>
AuthorDate: Wed Mar 10 20:14:20 2021 -0500
add og metadata for link previews
---
themes/solr/static/images/solr_og_image.png | Bin 0 -> 14089 bytes
themes/solr/templates/base.html | 8 ++++++++
2 files changed, 8 insertions(+)
diff --git a/themes/solr/static/images/solr_og_image.png
b/themes/solr/static/images/solr_og_image.png
new file mode 100644
index 0000000..186f9f8
Binary files /dev/null and b/themes/solr/static/images/solr_og_image.png differ
diff --git a/themes/solr/templates/base.html b/themes/solr/templates/base.html
index e79187f..3db8e3b 100644
--- a/themes/solr/templates/base.html
+++ b/themes/solr/templates/base.html
@@ -10,6 +10,14 @@
content="apache, apache lucene, apache solr, solr, lucene,
search, information retrieval, spell checking, faceting,
inverted index, open source"/>
{% endblock %}
+ {% block ogmeta %}
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://solr.apache.org/{{ page.url }}"/>
+ <meta property="og:title" content="{{ page.title }}"/>
+ <meta property="og:description" content="{{ page.content | striptags |
replace("\"", """) | truncate(137, False, '...') }}"/>
+ <meta property="og:image"
content="https://solr.apache.org/theme/images/solr_og_image.png{{
STATIC_RESOURCE_SUFFIX }}"/>
+ <meta property="og:image:secure_url"
content="https://solr.apache.org/theme/solr/solr_og_image.png{{
STATIC_RESOURCE_SUFFIX }}"/>
+ {% endblock %}
{% block favicon %}
<link rel="icon" href="{{ SITEURL }}/theme/images/favicon.ico"
type="image/x-icon">