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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a21e-2c1e6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a21e-2c1e6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?