The use of freemaker

I find a problem when I use freemaker to static a web page. I don"t know how to solve it. For example, the @ copy part of the foot of a website should always be the same. For example, I make the home page static. Every time I add a message, I modify the content of the page and regenerate the file with the same file name. But what if you just modify the contents of < title > < / title >? Do you have to read the database and load the data of the message to generate it again?
I know that maybe my original implementation is wrong, but how do I do it?

Mar.11,2021
Menu