Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: For static HTML, what is your go to template?
3 points by triyambakam on March 23, 2022 | hide | past | favorite | 7 comments
I am looking for something "full featured" but not beyond simply html.



Depends on the need...I have a quick LibreOffice HTML template in light or dark. I include metas for mobile use in the document properties. I also have a PHP controller that can easily modify these if I need it to be more dynamic.

Otherwise I use https://picocss.com/ for some things.

For publishing I either drop the HTML file in a folder with or without a controller, or start a new endpoint by creating a new section in TXP [1] and drop in whatever HTML and txp xml tags I need there.

1. https://textpattern.com/


Thanks for the suggestions! Did you hand craft the LibreOffice template? I hadn't considered that, that's quite interesting. I don't have a need for something like TXP yet, but it's quite appealing for what it offers. Thanks again


Yes, it's kind of hand-crafted I guess. You can check out an example here:

https://www.friendlyskies.net/file_download/22/Example-Libre...

It's a zipped OTH file, which is the LibreOffice HTML template format. IIRC it also makes use of styles, instead of resizing fonts and changing colors willy-nilly ;-)

It's worth a visit to the various tabs in File > Properties so you can properly attend to various behind-the-scenes stuff in the HTML export.



Manual Matuzovic has a good HTML boilerplate, and he goes line-by-line into what it does. https://www.matuzo.at/blog/html-boilerplate/


Hugo static site generator is pretty nice...


Thanks for the suggestion. I should have been clear - I want to write the HTML by hand, but not start from scratch each time.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: