DEV Community

Sheldon
Sheldon

Posted on

5

Hugo & Dev.to workflow

How do you go about minimizing issues with writing your blog posts for hugo so that you can cross post to dev.to without lots of formatting/editing work?

I use hugo and it supports shortcodes to allow you to format items like gists, images, and so on with a code like {{% gist 1234 %}} so you simplify your markdown syntax to avoid lots of direct embedded html. Callouts, images, and other shortcuts exist.

This is problematic when importing into dev.to and some other platforms I've noticed. For example my images sometimes aren't there and my embedded gists are just gone. Static image resources from project also use path based on directory (relative) so dev.to doesn't show them.

I'm considering possibility of using Stackbit too, but it's a lot of work to convert existing site so it's a future consideration, not active.

Any hugo pros have some secrets they can share?

My current blogging workflow has been modified to write my post in Notion, and then export as markdown to put in my repo once I'm ready. I want easy offline editing/autosave access, and this is the best way I've found to reduce overhead to tweaking posts.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (1)

Collapse
 
sheldonhull profile image
Sheldon

Anyone have further insight into leveraging dev.to to push to hugo?

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

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

Okay