A web-site is defined by a set templates, content (in both static files or a database), and page definitions that define how the template and content are to fit together.
Pages can then be generated ahead of time (so the resulting site is static), on demand, or somewhere in-between, with some pages served statically and some dynamically, depending on performance and other requirements.