mediumexporter
mediumexporter copied to clipboard
support Blogdown
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:
- instead of writing to stdout, save the result to a file with the pattern
YYYY-MM-DD-<slug>.Rmd
, where the slug does not include the hex string at the end of the Medium slug - add a "this post was first published" block at the top of the document
- create a Blogdown header
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)_
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.
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.
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.