xdamman / mediumexporter

Export your stories published on medium.com to markdown for easy import
MIT License
233 stars 32 forks source link

support Blogdown #11

Open HarlanH opened 6 years ago

HarlanH commented 6 years ago

This is a great project -- thank you for building it! Saved me a bunch of time! I'm using Blogdown for my site, and there was some manual effort that could be automated. This issue is some notes that someone (maybe me, if I have time) could use to make it easier to copy Medium posts to Blogdown format.

If --blogdown is provided on the command line:

Here's an example of a header. Note that the title, date, tags, slug, and URL for the "first published" block can all easily be generated automatically.

---
title: On How and When to Teach Layers of Abstraction in Programming
author: ''
date: '2017-10-05'
categories:
  - professional
tags:
  - programming
  - R
  - teaching
  - computer science
slug: on-how-and-when-to-teach-layers-of-abstraction-in-programming
---

_[This post was originally published on Medium](https://medium.com/@HarlanH/on-how-and-when-to-teach-layers-of-abstraction-in-programming-d220c4b5e5b9)_
PatrickHeneise commented 5 years ago

Is the author required? I've added all other fields in https://github.com/xdamman/mediumexporter/pull/14 and can add the "Originally published" note as well.

HarlanH commented 5 years ago

Nice! I vaguely recall that the author field is required, but I imagine could be hard-coded to just be what I have above. And yes, the "Originally published" note would save a little time as well.

PatrickHeneise commented 5 years ago

Ok. I supposed this is no longer relevant, but I'll have a look. I'm optimising for @gohugoio support at the moment, which is almost the same.