You can now generate self-hostable static blogs right from your DEV content via Stackbit

Ben Halpern on September 26, 2019

We shipped a new feature which allows you to automatically generate and maintain a statically-hosted blog from your DEV posts. This effectively mak... [Read Full]
markdown guide

We also just launched on product hunt if you want to see some pretty screenshots of the generated sites πŸ˜‰


(we should probably add a product hunt liquid tag, right?!)


Some of the touches on Stackbit are so much more clean and beautiful than anything we produce here at DEV πŸ˜„

I hope soon enough we'll smooth out the details of our experience in the little ways like this. (If anybody knows a great designer DM me πŸ˜‰)

But this also speaks to our ongoing interest in having underlying core mechanics that enable the correct behavior that our place in the ecosystem deserves... rather than focusing too heavily on the beautiful outer crust.

Compatibility with markdown and static site generators, a programmable API, ample tooling for data export, underlying follow mechanics and feed control that help folks control their experience... I'm proud that we find a way to prioritize the important, less visible stuff. I think it's paying off a lot lately.


This is amazing! It seems like it will save a bunch of time/hassle for setting up new blogs and hosting of content.

Congrats on launching it! πŸŽ‰

Any word about how this impacts SEO / changes how google looks at your own personal site? I'm not great with that stuff πŸ˜…


I was wondering if I'd have to go in and add canonical tags, or are they added automagically? AND if they are added, which site is considered canonical?


This is it. I was wondering why are you pushing a repo in each hour πŸ€”
Awesome feature! πŸ’–


Launch day... Always one more thing that we forgot πŸ˜‚


I guess you need to enable canonical URLs on your new website.

I checked your site and while this blog: royal-lime-c9165.netlify.com/posts...
doesn't have any canonical URL - it could potentially be marked as duplicate content because it's also hosted on: dev.to/devteam/you-can-now-generat...


It is possible to add canonical tags to your DEV.to post. Bit annoying to go through posts and adjust them but it should solve the problem.


I meant that if you look at the site that Ben's created - it doesn't have any canonical URL which is not good for SEO since Google could flag the content as duplicate!

Absolutely! But did he have a canonical URL front matter in his dev.to blog post?
I'm going to experiment a bit.

No, but it means that the original content is assumed to be from dev.to and not from anywhere else.

Whereas when Google will crawl the Netlify website, it will likely treat the content as duplicate from the dev.to blog

We’re working on better support for canonical URLs. It’s a matter of settling on how the configuration will work on the DEV side.

It’s been discussed, but we pushed it until post-release because we wanted some broader usability feedback.


So this is amazingly appealing for sure. My biggest question at this point is who owns the data? Is there an easy export of all my markdown?


The data generated in this feature will land in a GitHub repo for you do do what you want with it.

Additionally on this topic, but unrelated to the feature, you can export your data from the Export Content area of dev.to/settings/misc

Glad you like it πŸ˜„


Where exactly is the data in the Github repo? I created a quick test and I don't see my posts anywhere. Just curious because I want to write an article/post a video on this and I am sure this is going to come up.


This is pretty awesome!

Does it allow me to publish on the self-hosted site first and then on dev.to later?


That use case isn't 100% cleanly supported with this integration alone, though we'll work to make it function as expected.

I am pretty sure you could rig that up right now via this feature and some work with our API. We'll work to tie it all up nicely soon enough.



Would be nice if this could be configured via publish dates in the front matter.


That is great. This is what I somehow manually did with my Gatsby portfolio using the rss feed. For sure it makes it so much easier now


Some of us may feel the need to express ourselves in mathjax. I wonder if this feature can be supported at least on a per-post basis?

If so, this would be a great solution to deploy to my personal website as well :)


The post will appear first on DEV before appearing on my domain name.

Isn't that bad for SEO?


I guess it depends on the canonical? But I'm not sure.


This is a real great news for the Dev community.🀟
It is completely impossible to say the opposite.

I already had the chance to exchange with you about this subject in this blog post.

For me, it is still the first step to make Dev.to the blogging platform we all dream of.
Now we can easily extract our content from Dev.to but we can't detach ourselves from a service as centralized as AWS.

Netlify, Stackbits are great tools but in my idea, I'd rather be able to host my own Dev.to "at home" without tracking and without advertising.

Is it still something you have in mind ?


I’d love to see a comment plugin for wordpress that allows the comments to be shared with the cross post in dev.to.

And it could be a potential revenue source for dev.to since comment plugins typically have a freemium model.


Would it be possible to auto add the generated static site as the canonical URL?


This is not yet available, but it will be at some point soon. We have a handful of configuration details we need to work out.


I used Stackbit to migrate my Medium blog to a Gatsby site. It was fairly simple and painless, which is not what I expected of migrating off Medium πŸ˜…. Especially when I’d been posting to the blog on Medium once a week for between 1 and 2 years. Long story short, Stackbit is great and I’m excited to see this collab! πŸ™Œβœ¨βœ¨


So how will this work with canonical URLs? Does it automatically link to the newly generated site or is that something that needs to be done manually?


I don't see Orchid in the dashboard, but maybe @ohadpr can weigh in on whether it is in the works.


Orchid isn't supported yet but soon folks will be able to contribute their own themes to build their DEV sites with and user any static site generator.

It would be amazing to get Orchid integrated into the Stackbit platform! I'm the developer behind Orchid, and I'd love to work with y'all to get Orchid supported by Stackbit. What would it take to get Orchid supported?


Orchid is still pretty new/small so I wouldn't expect it to be natively supported by most JAMstack tooling.

That said, connecting DEV as a headless CMS to Orchid natively shouldn't be too difficult, I've already been experimenting with this kind of abstraction with the wiki and shouldn't take too much work to get it supported for blog posts too.


Just couple of days ago, I was thinking that I really need to publish on my own website versus just dev.to (or any other website). Amazing timing!

I already have personal website with jekyll hosted on netlify, but with custom theme. But it seems that stackbit is based on their own templating engine.

Are there any good tutorials/documentation on how to convert my own template to uniform?

Thanks again


Thanks Thanks Thanks. This is exactly what I wanted sometime back.


I've been meaning to set something up for myself for ages. This seems quick and easy, I'l going to give it a spin.


@ben - Are there plans to allow someone to use the content under an Organization rather than under one author to build out a Stackbit site?


This is awesome!! I wish I could post the dancing banana for this.


wait..what? this is seriously game changer feature for me! πŸ‘


Wow That's a great feature.
The only my concern having a look at your blog example is that not all the post's image load correctly.

Some posts have images some not, is this a performance issue?


This is just such a fantastic idea, and you guys are doing really good work for decentralising the web. I love the heart behind this. Thank you!!


I've been wondering how I was going to handle my DEV posts if I set up my own blog.


generated Home - Stackbit Ampersand Theme, but trying to figure out how to edit the This is about excerpt. Help appreciated!


@ben is this a one time data migration, or is something pushing/pulling the content into the repo?


Wow this really sounds interesting. Still trying to wrap my head around it and the possibilities!


This is great! One thing I’d love to see coming is to get rid of the upload picture and paste markdown in DEV editor: would be nice if there’s a CLI tool that automates this part!


Now this is some head-turning feature right here.
I'm curious on the styling options, though.
Interested to create a custom theme just for shits and giggles.


Pretty cool and so easy to get started with πŸ‘


Connecting to dev.to seems to not be working at the moment. Im not sure I understand how this can be a headless cms if stackbit does not have a rest api that we can interface with?


We had a brief hug of death when this first went live but it's working now.

Via the integration, DEV sends webhooks on changes of content in order to keep sites updated, so there is an underlying API that powers this all.


Has anyone had a problem getting the "Connect to DEV.to" connector to pop up on Stackbit?

code of conduct - report abuse