Have a look at static site generators. I‘ve used both Hugo and Nextjs and can recommend them.
Also there is nothing wrong with just editing html directly. It is a very good starting point for many projects like personal sites and other small projects.