Skip to content

Commit

Permalink
Add Open Graph image (home-assistant#158)
Browse files Browse the repository at this point in the history
* Add ogimage

* change to PNG

og doesn't support svg as image

* Use absolute link

Seems to be a bug of adding additional / to og urls

* Try again

Ok that didn't work either seems baseURL is allowas preended to that. This won't work but want to see what we get

* Fix og image

Found in. was erroneous slash in `url` field that is not handled by og image generation
  • Loading branch information
TomBrien authored Feb 12, 2020
1 parent 5dbd6ce commit 9bacb80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
title: 'Home Assistant Companion Docs',
tagline: 'Everything you need to know to use Home Assistant Companion',
url: 'https://companion.home-assistant.io/',
url: 'https://companion.home-assistant.io',
baseUrl: '/',
favicon: 'img/favicon.png',
organizationName: 'home-assistant', // Usually your GitHub org/user name.
Expand Down Expand Up @@ -65,6 +65,7 @@ module.exports = {
],
copyright: `Copyright © ${new Date().getFullYear()} Home Assistant. Built with Docusaurus.`,
},
image: 'img/logo-pretty.png',
},
presets: [
[
Expand Down
Binary file added static/img/logo-pretty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9bacb80

Please sign in to comment.