Live data from Hacker News

All you may need is HTML

fabiensanglard.net

11–20 of 328 posts

Re: All you may need is HTML

#11
post #2

HTML + CSS for whitespacing & viewport width + SSI | Caddy's template That combo is more than enough for almost all the websites out there, I've 3 different sites like that and they are blazingly fast, everything served from a $4 VPS (serving about 20k views per week).

SSI: Server Side Include[0], my first not so simple website was created with SSI, with all the pages as `.shtml`. These are memories.

[0]: https://en.wikipedia.org/wiki/Server_Side_Includes

Re: All you may need is HTML

#12
post #4

> Originally this website's font-family simply requested monospace. This approach resulted in varying reading experience depending on the OS. Windows browsers got Consolas, Linux users got DejaVu Sans Mono, and macOS people got Courier. I find it so sad that our browsers have such bad default fonts that all websites feel the need to override them to get an acceptable look. It would be great if browsers had decent def…

At least on linux, it's not the browser that picks the font used for "monospace" but part of fontconfig. I've reconfigured my fontconfig to use a different font for monospace.

Re: All you may need is HTML

#14
As I sit here several minutes into a build powered by gigabytes of modules and package artifacts that is converting a collection of components into react-native, then converting the 30-page react-native mobile application to HTML using react-native-web.

Now wasn't that easy?

Re: All you may need is HTML

#15
> THE PROBLEMS A GENERATOR SOLVES

One problem not listed is source code syntax highlighting. If you provide source code listings in articles, then highlighting is a big help to readers. Generating it in HTML is not fun.

Re: All you may need is HTML

#16
post #4

> Originally this website's font-family simply requested monospace. This approach resulted in varying reading experience depending on the OS. Windows browsers got Consolas, Linux users got DejaVu Sans Mono, and macOS people got Courier. I find it so sad that our browsers have such bad default fonts that all websites feel the need to override them to get an acceptable look. It would be great if browsers had decent def…

In my experience the default fonts on Apple devices are far and away the best fonts, period. They're better than almost every custom font, especially for readability.

I don't have an Apple device to test but does that mean that the author's point about the default `monospace` font "Courier New, is not legible" is out of date or just a rare opinion?

Re: All you may need is HTML

#18
I sympathise with the main thrust of the post but, to nitpick, this is just plain wrong:

> But mostly css appeals to our vanity and ego.

Design isn't just about aesthetics. Good information design, clear visual hierarchy, accessibility, etc. all help with communication. The author's effective use of spacing, bold, and code tags show us that they know this intuitively, despite what they write.

Re: All you may need is HTML

#19
post #9
post #5

Earlier quoted context omitted.

Good luck having your site be easy to read on both mobile and desktop with either of these approaches. text/plain may work if you use soft wrapping, but even then most desktop will need to resize their browser window to make it narrow enough to read comfortably.

I love that you went with easiness to read and not "wait, how does anyone navigate on your site without links in plain text files?"

If I can't read your site non-clickable links is not going to be an issue as I will never get that far!

Re: All you may need is HTML

#20
post #11
post #2

HTML + CSS for whitespacing & viewport width + SSI | Caddy's template That combo is more than enough for almost all the websites out there, I've 3 different sites like that and they are blazingly fast, everything served from a $4 VPS (serving about 20k views per week).

SSI: Server Side Include[0], my first not so simple website was created with SSI, with all the pages as `.shtml`. These are memories. [0]: https://en.wikipedia.org/wiki/Server_Side_Includes

I never released a production website with SSI before, but I found it when I was searching for a more bare-metal approach to make websites; then I found Caddy's template engine and it's been more than enough for what I need.
Post reply on HN