News for hackers. Stuff that matters.
Re:Show HN: Makesite – A static site generator in 125 lines ... by secura on Saturday March 17, 2018 @08:32AM (#16606675)
Is this a valid HTML? https://validator.w3.org/ seems to require this as minimal HTML to validate successfully.

    <!DOCTYPE html><html><title>0</title>
I would thus fix your 1 line shell static site generator like this.

    echo '<!DOCTYPE html><html><title>0</title>' > index.html
Re:Show HN: Makesite – A static site generator in 125 lines ... by butz on Saturday March 17, 2018 @08:52AM (#16606733)
You can trim <html> tag and still get valid html: <!DOCTYPE html><title>0</title>
Re:Show HN: Makesite – A static site generator in 125 lines ... by cryptoz on Saturday March 17, 2018 @10:08AM (#16606995)
It's still a site even if it doesn't validate. HN (news.ycombinator.com) generates more than 100 errors on that validator. Doesn't mean HN isn't a site.