I have seasons where my writing ebbs and flows, where I'll write a lot one month and a little bit another month. I've found that it's helpful to set aside time in the day specifically to write. So when 9:00pm rolls around, for example, I know that my time from 9:00pm to 10:00pm is devoted solely to writing.
I don't always publish my writing—or even keep what I've written—but I count it as a win if I put words down on the page.
It's also important to give yourself plenty of grace when it comes to writing! It's okay to try new things on Medium to see what works and what doesn't.