jekyll-crosspost-to-medium icon indicating copy to clipboard operation
jekyll-crosspost-to-medium copied to clipboard

Only crosspost when jekyll build'ing

Open 0xdevalias opened this issue 9 years ago • 5 comments

Currently it seems that crossposts are made when using jekyll serve as well as jekyll build (or more correctly, the first that happens.

If i've got a post that's not quite done yet, it'll get posted early.

Just realised, this probably isn't as big of a concern when using _draft's (currently in the process of importing an old blog), but if it's easy to add it would be a cool option.

0xdevalias avatar Apr 12 '16 04:04 0xdevalias

It does respect published: false, but I agree. I use _drafts but I also wait to set crosspost_to_medium until the post is live or going live.

On Tue, Apr 12, 2016 at 12:09 AM, alias1 [email protected] wrote:

Currently it seems that crossposts are made when using jekyll serve as well as jekyll build (or more correctly, the first that happens.

If i've got a post that's not quite done yet, it'll get posted early.

Just realised, this probably isn't as big of a concern when using _draft's (currently in the process of importing an old blog), but if it's easy to add it would be a cool option.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/aarongustafson/jekyll-crosspost-to-medium/issues/31

aarongustafson avatar Apr 12 '16 14:04 aarongustafson

Hrmm, that makes sense. I was going to set it in my default post vars thing, but I suppose probably best to have some more control over it.

0xdevalias avatar Apr 12 '16 18:04 0xdevalias

Two concerns:

I post my site to Github, but you're suggesting putting the token into the _config.yml. That exposes the private API key to everyone, doesn't it?

Would posting to GH cause the cross-post, or when I build locally? If the latter, then this could be a local environment variable...or perhaps a .medium file that I can promptly put into .gitignore

Merovex avatar Aug 26 '16 14:08 Merovex

@Merovex Don't think that's related to this issue? And from my read of the readme, it's saying to use environment variables, not the config?

0xdevalias avatar Aug 30 '16 00:08 0xdevalias

I kept having Ruby/Jekyll issues when upgrading my Mac, so I have moved off of Jekyll and will not be working on this project anymore, going forward. I am going to flag this as won’t fix, but leave it open in case someone else wants to pick up the project from here.

aarongustafson avatar Jul 22 '21 21:07 aarongustafson