Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Blogdown #11

Open
HarlanH opened this issue Mar 11, 2018 · 3 comments
Open

support Blogdown #11

HarlanH opened this issue Mar 11, 2018 · 3 comments

Comments

@HarlanH
Copy link

@HarlanH HarlanH commented Mar 11, 2018

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)_
@PatrickHeneise
Copy link
Contributor

@PatrickHeneise PatrickHeneise commented Feb 6, 2019

Is the author required? I've added all other fields in #14 and can add the "Originally published" note as well.

@HarlanH
Copy link
Author

@HarlanH HarlanH commented Feb 6, 2019

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
Copy link
Contributor

@PatrickHeneise PatrickHeneise commented Feb 6, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants