DEV Community

Discussion on: Import DEV Posts To Jekyll With GitHub Actions

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Nice work! Sounds useful.

Wish there was something for the opposite—syncing posts from a Jekyll site to Dev.to. Things like custom includes and Liquid tags would make that very difficult, so I just copy-paste and reformat by hand.

One word of advice: Be sure to add a canonical link to the head of each blog post on your site, and have its href point to the corresponding Dev.to blog post. Otherwise, if Google sees your duplicate content, it may lower your site's ranking.

Collapse
 
bengreenberg profile image
Ben Greenberg

Have you tried setting up the Publishing from RSS option in your DEV profile? I can imagine the custom includes and things like that would still mean you need to go back and edit before publishing, but at least you could skip the copy and paste step? :)

Yes, canonical URL is super important, totally agree! I only want my blog posts to live on DEV, so I'm not importing the post, just basically creating a link back to DEV from the data. But, if someone forked the action repo and modified it to import the whole post, they should definitely add the canonical link reference. Making the search engines happy is important!

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Ah, no, I'll have to look into that!