jola

jola

Generating OG images in Elixir

Set up Open Graph (preview) images for my blog in Elixir and wrote up the work involved. You can see a sample image on this post I think!

The post should have everything you need to do it yourself if you want to, but I also link to a little NimblePublisher style library I wrote to do the same (which I’m now using).

First Post!

mudasobwa

mudasobwa

Creator of Cure

Nice!

I’ve been there and the only nitpick would be I wanted the actual image to take precedence over the generated one, if the page has an embedded image already.

Mine has been launched in the before-publisher era, but I believe it should not be too complicated to add such a functionality to ogmate. If you are interested in, I might provide a PR.

Most Liked

mhanberg

mhanberg

Expert LSP Core Team

More of a comment than a question, I have a similar thing for my static site generator Tableau

mudasobwa

mudasobwa

Creator of Cure

Ah, indeed. Sorry for the noise.

Where Next?

Popular in Blog Posts Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 131117 1222
New
wmnnd
Here’s the story how one of the world’s first production deployments of LiveView came to be - and how trying to improve it almost caused ...
New
brainlid
There is a new community resource available on writing “Safe Ecto Migrations”. When we get a migration wrong, it can lock up your product...
New
brainlid
Dialyzer is a tool that you’ve probably heard about in the Elixir community. You may have even used it. However, adding Dialyzer to an ex...
New
PragTob
Elixir is a great language, but some behavior can be unintuitive, confusing and in the worst case lead to bugs. So, I took a look at 10 E...
New
psantos
Just wrote a new blog post about how to deploy a Phoenix app using Kamal 2. Check it out and let me know what do you think: https://blog...
New
gaggle
This post explores different ways to do test automation in Elixir, focusing on how to handle dependency injection — covering patterns, li...
New

Other popular topics Top

jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

We're in Beta

About us Mission Statement