HermanMartinus / bearblog

Free, no-nonsense, super fast blogging.
MIT License
2.7k stars 77 forks source link

Option to export posts #52

Closed vikramnr closed 2 years ago

vikramnr commented 4 years ago

@HermanMartinus , It would nice to have option to export post in Markdown or text format as well

HermanMartinus commented 4 years ago

That sounds doable. What kind of deliniation would be useful to you in a markdown format?

#  Title
*date*
...post content...
***
# Title
etc
vikramnr commented 4 years ago

I'm not sure about that, so whichever you think would be useful :+1:

HermanMartinus commented 3 years ago

This doesn't have a high priority for me at the moment. In the meantime you can use the RSS feed for your blog to export that information in XML format. Eg: https://herman.bearblog.dev/feed/

minthemiddle commented 2 years ago

Some raw dump of the posts would be a lot more valuable than formatted XML. Even a SQL dump would give a lot more confidence than processed data (as in the XML). I cannot reuse the XML easily in another markdown system and it creates a lock-in for any markdown writing process - unless I write locally first and just copy to Bearblog at the end (but this becomes tedious quickly).

The prefered markdown would be with YAML metadata (à la Pandoc):

---
title:  'This is the title: it contains a colon'
tags: [nothing, nothingness]
permalink: '#'
(+ all other fields)
...

# The post 

As raw markdown
HermanMartinus commented 2 years ago

Exporting can now be done in the admin panel of the dashboard