#!/bin/bash

# Exit immediately if a command exits with a non-zero status.
set -e

BLOG_INDEX="blog/index.html"

echo "Validating $BLOG_INDEX with tidy..."

# Run tidy with HTML5 doctype, quiet output, and show warnings
tidy -q -e -utf8 --doctype html5 "$BLOG_INDEX"

echo "HTML validation for $BLOG_INDEX completed."