Am I missing something with the social plugin #6212
Closed
SteveRosam
started this conversation in
General
Replies: 3 comments 8 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Do you have the definitions:
- &page_title_with_site_name >-
{%- if not page.is_homepage -%}
{{ page.meta.get("title", page.title) }} - {{ config.site_name }}
{%- else -%}
{{ page.meta.get("title", page.title) }}
{%- endif -%}
- &page_description >-
{{ page.meta.get("description", config.site_description) or "" }}
tags:
og:type: website
og:title: *page_title_with_site_name
og:description: *page_description
og:image: "{{ image.url }}"
og:image:type: "{{ image.type }}"
og:image:width: "{{ image.width }}"
og:image:height: "{{ image.height }}"
og:url: "{{ page.canonical_url }}"
twitter:card: summary_large_image
twitter:title: *page_title_with_site_name
twitter:description: *page_description
twitter:image: "{{ image.url }}" |
Beta Was this translation helpful? Give feedback.
4 replies
-
Thank you guys. Solved by installing insiders locally and adding :
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the social plugin.
Our site was generating the default social images. I changed it to use a custom layout (which when running locally renders images into the
.cache\plugin\social
folder just fine)When deployed we don't get any social images. I can see that the images are there in the correct folder on the server where everything is deployed.. so I guess this isn't an MKDocs or Material issue. Buuutt.. anyone know if anything else needs to be done to get this working?
Deployed to GitHub pages via a GitHub action fwiw
(
How are the images served/sent/provided to the platform their being posted on?
I assume there is a URL that's called to get the image?
)
Beta Was this translation helpful? Give feedback.
All reactions