News for hackers. Stuff that matters.
Re:Show HN: Publish a Markdown website in 5 minutes by avn2109 on Monday November 21, 2016 @03:50PM (#13009080)
I keep waiting for someone to write a program that consumes as input Markdown text and emits as output a pure HTML/CSS site literally like this http://bettermotherfuckingwebsite.com/ except with the text from the Markdown file instead of swear words. Maybe it could even accept several Markdown files and make them into blog posts or something.

If nobody else does I guess eventually I'll get fed up and build it myself :\

Re:Show HN: Publish a Markdown website in 5 minutes by kornish on Monday November 21, 2016 @06:05PM (#13010113)
Plenty of static site generators, as they're called, exist to do this. Good jumping-off points would be investigating Jekyll (written in Ruby) and Hugo (written in Golang).

https://github.com/jekyll/jekyll

https://github.com/spf13/hugo

Re:Show HN: Publish a Markdown website in 5 minutes by avn2109 on Tuesday November 22, 2016 @12:56AM (#13011941)
Yup but they're bloated.
Re:Show HN: Publish a Markdown website in 5 minutes by codethief on Tuesday November 22, 2016 @01:30AM (#13012066)
I agree. In Hugo's case there wasn't even a way to generate a completely static website for the longest time (i.e. not a blog or anything like that) and I'm not even sure they've fixed it yet.
Re:Show HN: Publish a Markdown website in 5 minutes by paulddraper on Monday November 21, 2016 @05:10PM (#13009679)
I've used Pandoc.

You can generate a HTML fragment, or an HTML file, or HTML with table of contents, CSS, and footer, etc. http://pandoc.org/demos.html

It has some pretty heavy dependencies, but so far I haven't found anything better for generating a true static site from Markdown. I probably haven't looked hard enough either.

Re:Show HN: Publish a Markdown website in 5 minutes by sirtimbly on Tuesday November 22, 2016 @12:28PM (#13015656)
The only thing more fragile and hard to setup than a static site generator is probably pandoc. All of these are terrible Yak Shaving opportunities. Yet, I still do it.
Re:Show HN: Publish a Markdown website in 5 minutes by branchly2 on Wednesday November 23, 2016 @09:33AM (#13022868)
The Pandoc site appears to provide binary downloads for the major platforms. Myself, I just always do `apt install pandoc`.

Pandoc is written in Haskell, but when built it's just a regular binary.

Re:Show HN: Publish a Markdown website in 5 minutes by erelde on Tuesday November 22, 2016 @06:32AM (#13013321)
+1 for Pandoc

I use it a lot, I've collected of quite large collection of long form articles/"opinion pieces"/etc from websites and used pandoc to translate them into epub. (after manually pruning some html)

Re:Show HN: Publish a Markdown website in 5 minutes by austincheney on Monday November 21, 2016 @04:24PM (#13009341)
Instead of HTML/CSS why not parse markdown to a something even more direct like terminal output. My biddle application does this. Try it out let me know what you thing. Here are some commands to get started:

  git clone [email protected]:prettydiff/biddle.git
  cd biddle
  node biddle    (parses the readme.md file to the terminal)

  node biddle get http://example.com/document.md
  node biddle markdown downloads/document.md

  node biddle markdown downloads/document.md 60 (word wrap at 60 character width)
Re:Show HN: Publish a Markdown website in 5 minutes by fiatjaf on Monday November 21, 2016 @08:10PM (#13010803)
Link to biddle!
Re:Show HN: Publish a Markdown website in 5 minutes by achen2345 on Monday November 21, 2016 @11:30PM (#13011639)
Re:Show HN: Publish a Markdown website in 5 minutes by roel_v on Monday November 21, 2016 @06:14PM (#13010178)
Pandoc does this. However I've found that you really quickly run into limits. I prefer a slightly-more-elaborate-but-still-no-database solution like Kirby. Throw it onto any budget web hoster with php enabled and you get easy Markdown-based content management, but still separation of content and templates, plugins for a contact form or picture gallery etc.
Re:Show HN: Publish a Markdown website in 5 minutes by hawski on Tuesday November 22, 2016 @07:10AM (#13013500)
I found something exactly like it: https://github.com/alexanderteinum/simple-website/

Example: https://alexanderteinum.github.io/

Lately I was searching for static site generator that would require no configuration. It is written in single file of straightforward go. It gives you just two sections: posts and pages.

Re:Show HN: Publish a Markdown website in 5 minutes by avn2109 on Tuesday November 22, 2016 @01:54PM (#13016451)
This is pretty much what I have in mind. Awesome :)
Re:Show HN: Publish a Markdown website in 5 minutes by wcummings on Monday November 21, 2016 @06:12PM (#13010166)
Org-mode can do everything you're describing.
Re:Show HN: Publish a Markdown website in 5 minutes by dirkk0 on Saturday November 26, 2016 @12:07PM (#13044633)
Here you go. I use this to create my personal website. https://github.com/dirkk0/microCMS
Re:Show HN: Publish a Markdown website in 5 minutes by codethief on Tuesday November 22, 2016 @01:28AM (#13012058)
If you don't want anything complicated you could actually use Pandoc to generate the HTML for you. Then you could either insert the resulting HTML into a layout template yourself or have Pandoc do it (by creating a template for Pandoc).

EDIT: Oops, Pandoc was already mentioned. I should have refreshed the site.