ragamuf

ragamuf

Phoenix Blog Post: Roll Your Own Blog in Elixir and Phoenix

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.

Follow the creation of my product’s blog using the same Elixir and Phoenix tooling, mixed with a big scoop of Markdown and good ole fashion Vim.

And, remember, it is a discussion, so feel free to join the conversation.

Most Liked

derek-zhou

derek-zhou

Rolling your own also means that a lot of things people take for granted would have do be done again. Opengraph metas, discoverable RSS feed, etc.

ragamuf

ragamuf

Derek, that is part of the fun. I cover how to inject the OG tags when rendering the article. With regards to RSS, it is not a breaking deal for me at the moment. The freedom I get authoring and publishing articles in the same manner that I code makes all the difference for me. With that said, not everyone will share that view which is welcomed.

AstonJ

AstonJ

Adding OG tags shouldn’t be too much of an issue.. and not everyone wants or needs an RSS feed, esp if the blog is used just to post company news etc :smiley:

Thanks for the write-up @ragamuf :023:

derek-zhou

derek-zhou

Don’t get me wrong, I wrote my own SSG too (ok, just a few old crufty perl scripts I threw together years ago, but still)

I only want to say that if your blog had better semantics in the meta data, your blog could be more accessible. For example, you have a tagging system, but the tags was not exposed through the article:tag meta. Compare to the main effort of your blogging system, these things are easy, like one line of code easy, so I was trying to give you a friendly nudge.

Where Next?

Popular in Blog Posts Top

New
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
paulanthonywilson
https://furlough.merecomplexities.com/elixir/otp/tdd/2021/03/18/test-driving-otp-creating-a-registry-with-expiring-entries.html Followin...
New
New
mudasobwa
Wrote some rant on Business Process Driven Development with Finite Automata (and Finitomata library in particular.)
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
sashaafm
How to use the blogs section You can post links to your blog posts either in one of the Official Blog Posts threads (like this one), or, ...
296 24412 135
New
mudasobwa
Just blogged on the general approach to creating easily extendable applications with plugin support.
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:
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

Other popular topics Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

We're in Beta

About us Mission Statement