Show HN: Makesite – A static site generator in 125 lines of Python
1–10 of 63 posts
Re: Show HN: Makesite – A static site generator in 125 lines of Python
#2How widespread commonmark really is? Any popular sites using it? If I write my blog posts in commonmark is it safe to assume site generation tools 10 years from now will correctly render commonmark?
Re: Show HN: Makesite – A static site generator in 125 lines of Python
#3 echo "" > index.htmlRe: Show HN: Makesite – A static site generator in 125 lines of Python
#4This seems to use the commonmark library to render Markdown? Can it render Pandoc flavour of Markdown? How widespread commonmark really is? Any popular sites using it? If I write my blog posts in commonmark is it safe to assume site generation tools 10 years from now will correctly render commonmark?
https://githubengineering.com/a-formal-spec-for-github-markd...
Re: Show HN: Makesite – A static site generator in 125 lines of Python
#5I 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 what ain't broken don't fix it.
Re: Show HN: Makesite – A static site generator in 125 lines of Python
#6generate static site with 1 line of shell command echo " " > index.html
0
I would thus fix your 1 line shell static site generator like this. echo '0' > index.htmlRe: Show HN: Makesite – A static site generator in 125 lines of Python
#7generate static site with 1 line of shell command echo " " > index.html
Is this a valid HTML? https://validator.w3.org/ seems to require this as minimal HTML to validate successfully. 0 I would thus fix your 1 line shell static site generator like this. echo ' 0 ' > index.html
Re: Show HN: Makesite – A static site generator in 125 lines of Python
#8Hugo 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…
For example, the base layout template needs to go to themes//layouts/_default/base.html but the layout for a blog needs to go to themes//layouts//single.html. Then there is list type layout too to define the blog index pages. Is the home page a single page or a list page? Can the entire home page be defined as a base template? It gets confusing.
Then the whole {{ define }} and {{ block }} syntax to embed one template in another is quite unintuitive as well. I think Jekyll has much more sane layout that is easy to keep in head. Also in Jekyll one can define list pages without any special naming convention just by using its templating for-loops. I find Hugo less intuitive than others but the fact that Hugo does not require me to learn Ruby is a win.
Custom written shell commands or Python code or even plain SSI includes are a great way to host static content too.
Re: Show HN: Makesite – A static site generator in 125 lines of Python
#9Hugo 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…
Re: Show HN: Makesite – A static site generator in 125 lines of Python
#10generate static site with 1 line of shell command echo " " > index.html
Is this a valid HTML? https://validator.w3.org/ seems to require this as minimal HTML to validate successfully. 0 I would thus fix your 1 line shell static site generator like this. echo ' 0 ' > index.html