Live data from Hacker News

Show HN: Makesite – A static site generator in 125 lines of Python

github.com

51–60 of 63 posts

Re: Show HN: Makesite – A static site generator in 125 lines of Python

#53
Shameless plug, I have been a little upset about how convoluted the static site offerings have been. So I have been building https://www.gabrielcsapo.com/sweeney/ in my free time. It needs a ton of work, but trying to keep it compact and 100% tested. The main source of inspiration is making static sites configurable enough for people to stop using Wordpress and making their clients lives incredible difficult. Really cool project @makesite!

Re: Show HN: Makesite – A static site generator in 125 lines of Python

#55
post #43

Earlier quoted context omitted.

The main competitor to CommonMark is GFM, which is now based on CommonMark. https://githubengineering.com/a-formal-spec-for-github-markd...

I had checked out CommonMark a bit and blogged about it here, including an example of using it, and a bit about their goals: CommonMark, a pure Python Markdown parser and renderer: https://jugad2.blogspot.in/2014/09/commonmark-pure-python-ma... One interesting point from them was this: [ Reddit user bracewel, who seems to be a CommonMark team member, said on the Py Reddit thread: eventually we'd like to add a few mor…

Interesting, I have a little sideproject at work that would really benefit from markdown -> rtf.

Re: Show HN: Makesite – A static site generator in 125 lines of Python

#56
post #19

Earlier quoted context omitted.

I do something similar, except with a `bash` script and hand writing the titles + dates. I thought about automating that, but work in different time zones so prefer to choose. One thing I might have of interest to you is a small DNT (DoNotTrack) JS file [1] and some CSS that adds some visual markdown features to the page after the fact [2]. P.S. Your output looks like it's missing ` ` and other tags? And how are you…

Since I may not have time to update my article for a while, here is a link to the script[1]. I am unclear on your dnt script? What does it do? I don't have any facilities on my site to track users at all as it stands. I will probably be mooching parts of your CSS though, thanks for posting it here! Edit: you are correct, I seem to have forgotten to include tags... I should probably fix that. [1] https://gist.github.c…

>Since I may not have time to update my article for a while, here is a link to the script[1].

Thank you. I was hoping you had figured out how to get it going in `pandoc`, tried it myself to no avail but just assumed I had done something wrong.

>I am unclear on your dnt script? What does it do? I don't have any facilities on my site to track users at all as it stands.

No, but I can imagine it useful if you did want to put a relevant YouTube video or Tweet embedded in, but wanted to respect DNT. It's worked pretty well so far.

>I will probably be mooching parts of your CSS though, thanks for posting it here!

No problem! Some parts to make the font size a little better for mobiles too at the top :)

>Edit: you are correct, I seem to have forgotten to include tags... I should probably fix that.

Yeah, not a massive deal but who knows, could break something in the future!

Re: Show HN: Makesite – A static site generator in 125 lines of Python

#58

Hugo is still most convenient, at least for me and my workflow. I just pull it with homebrew, created my theme/template, write blogposts in Emacs org-mode (using ox-hugo), host it on GH pages for free, and use custom domain and free tier cloudflare. I am really enjoying bare essentials I got, very streamlined process that does the job for me. This looks interesting, I really like minimalist aspects of software, but w…

Hey! Ox-hugo dev here. Do you have your site source (Org source) public? I am just collecting Ox-hugo Org source repos, that I plan to publish on the ox-hugo doc site (of source, that won't happen if you don't wish, even if your source is public).

For folks, if interested in seeing an example of the Org source, and ox-hugo + Hugo generated site, here's the source[1] of my blog[2].

More: https://ox-hugo.scripter.co/#demo

[1]: https://gitlab.com/kaushalmodi/kaushalmodi.gitlab.io/raw/mas... [2]: https://scripter.co

Re: Show HN: Makesite – A static site generator in 125 lines of Python

#59

Hugo is still most convenient, at least for me and my workflow. I just pull it with homebrew, created my theme/template, write blogposts in Emacs org-mode (using ox-hugo), host it on GH pages for free, and use custom domain and free tier cloudflare. I am really enjoying bare essentials I got, very streamlined process that does the job for me. This looks interesting, I really like minimalist aspects of software, but w…

Alright - I like your website layout: https://defphil.com/ But to be fair, some people may want different features than the bare minimum. Also, even if Hugo is the most convenient as an org-mode user, I highly doubt it'd be the most convenient for others (who don't use org-mode lol). Also, you should write more posts!

The Hugo generated site features can vary with the theme used (I believe there are 200+ options), and the features can get as detailed as a user wants if they just template their own site.

Ox-hugo that the OP mentioned is just an Emacs package that exports Org to Markdown + front-matter (without having to manually specify many of be front matter data in the Org source.. most of it is auto derived.).

Re: Show HN: Makesite – A static site generator in 125 lines of Python

#60

Earlier quoted context omitted.

>index.htm Two characters shorter and will work fine on most HTTP servers ;-)

Now you're just being pedantic, Peter!

Yes, but it looked like this was turning into a golfing thread ;-)
Post reply on HN