davidism / lektor-open-graph Goto Github PK
View Code? Open in Web Editor NEWAdd Open Graph tags to Lektor pages.
License: BSD 3-Clause "New" or "Revised" License
Add Open Graph tags to Lektor pages.
License: BSD 3-Clause "New" or "Revised" License
Looking at the source, it seems like the images get matched by attachment _id
that should be og_image
but it's actually unclear how to achieve attachment having that sort of ID. Any pointers?
In particular, Twitter has its own set of proprietary tags that allow customizing the look of the shared links even further.
Ref: https://css-tricks.com/essential-meta-tags-social-media/
Hey @davidism! I know this plugin is fresh out of the oven, but if you think it's ready, I'd love it if it got added to getlektor's plugin list.
Thanks!
So I learned that SVGs can't be used as og:image
but this plugin doesn't filter them out.
I think that it should do something about it. The first step may be emitting a warning during the build. Then, it could attempt converting SVG to PNG maybe. ImageMagic is often available on build machines so maybe using PIL/Pillow can do the trick.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.