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

tmartin8080
Sharing some articles I’ve written recently while working in Elixir. Some are how-to guides and others for reference. Will update this ...
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
ragamuf
Does the world need another How to create a blog article? Maybe not. But then again, creating something out of nothing is what we love....
New
brainlid
This post asks if we can remove Alpine from the PETAL stack. Can we do everything we need with just LiveView? Also, let’s explore an area...
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
John-BoothIQ
TL;DR: Good: AI is great at Elixir. It gets better as your codebase grows. Bad: It defaults to defensive, imperative code. You need...
New
Alex66
I ran Symphony through Giulia, here’s the AST analysis. Yesterday, OpenAI open-sourced Symphony — an autonomous agent orchestration fra...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40165 209
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement