DEV Community

protium
protium

Posted on • Edited on

2 1

blogpub@v0.4.1: host media on github for your blog posts

blogpub@v0.4.1: host media on github for your blog posts

Hey everyone, this is just a small update on the blogpub action.

Relative paths

In release v0.4.1 I added support for relative
paths which means you can now use github to host the media you use in your blog posts.
How does it work? Just use relative paths (to the markdown file) and you are ready to go.
E.g.

magic

The action replaces all relative paths with the raw content github urls.
In the example .magic.gif is replaced with https://raw.githubusercontent.com/protiumx/blog/articles/blog-002/magic.gif.
Check out the code here.

That's all!

What other feature would you find useful for this action?
Let me know in the comments.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay