Is it possible to set a single image/logo for all social cards? Or can we disable them completely? (without the plugin?) [Windows trouble] #5761
-
I'm on Windows and having trouble setting up the social cards. Right now, websites are using the first image from each page. I'd like to either disable them from pulling any image, or set it to be a single image for all pages (Edit: solution using overrides). Regarding my problems: I think I'm stuck here https://squidfunk.github.io/mkdocs-material/setup/dependencies/image-processing/#windows on the I tried both of these, but neither disabled the previews completely:
In
When I build on Windows with
or anything similar, I get these errors which I haven't been able to solve:
I'm using Python 3.10.11. I installed the precompiled GTK runtime. And I had no issues with Edit: more info in addition to the marked solution: #5761 (reply in thread) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 24 replies
-
The post is a bit all over the place or it's just me being stupid, as I'm not sure what are you trying to achieve.
Here you tell that the plugin works since it generates the images based on some criteria, but later you talk about the error, which prevents you from continuing? The As for the error, according to the traceback the error at the bottom originated in the I agree that the issue here is hard to pin point. However, maybe the discussion will lead to some sort of result 🤷 You could even try to reinstall mkdocs-material. Something along the lines of (for the non-Insiders version): pip install mkdocs-material --force-reinstall EDIT: |
Beta Was this translation helpful? Give feedback.
-
I upgraded MKdocs and Material today and noticed that you "fixed the bug". Unfortunately, for me this caused more problems: I was building with the Google Font I wanted for the social cards, and then changing the font to Unfortunately, after the update it will now not allow me to build with Also, it only seems to be a "partial fix" since the .cache folder/files don't change at all when I change the font in Downgrading:I don't see any info on downgrading to previous versions: https://squidfunk.github.io/mkdocs-material/ - via search for Nor in the Nor in I guess the "best" solution might be to find a google font similar to Verdana, but I haven't found one yet. I switched to Verdana from EDIT: And maybe this css would work:
|
Beta Was this translation helpful? Give feedback.
Actually, I assumed you're correct, but just checked and there is no 'Times New Roman' font in Google Fonts either. Try with what I posted above or simply
text: Roboto
As for the Linkedin, I will check it later once I find my account...#5761 (reply in thread)The message below contains more information if this answer together with the previous posts isn't enough:
#5761 (reply in thread)