What is the meaning of righteous poetry?

The writing background of Yang Chao's Yi Shi is as follows:

In the thirty-second year of Jiajing (1553), the Tatars invaded the north, and the poet insisted on resistance, opposed compromise and made a mistake in the country. He was tortured to death for impeaching the traitor Yan Song. This poem was written before he was executed. Yi Shi is a five-character poem by Yang Jisheng, a poet in Ming Dynasty.

The author of Yi Shi is Yang Jisheng, a famous remonstrator in Ming Dynasty. Zhong Fang, Jiao Shan, was born in Rongcheng, Zhili (now Zhaocun, Beihe, Rongcheng County, Hebei Province). Jiajing twenty-six years, Jinshi, officers and men. Sit on the horse market and belittle the history of morality. It's nothing. I joined the Ministry of Civil Affairs and transferred to the military. Song died illegally, and he was given too much time and too young loyalty. Later generations inherited the old residence, changed the temple to serve, and respected it as the city god. He is the author of Collected Works of Yang Zhongyu.

Appreciation of righteous poems is as follows:

The first two sentences say that although he is dead, his heroism remains in the world and shines through the ages. The last two sentences lament with regret that if you die before your ambition is rewarded, but if you have a loyal soul after death, you will serve your country with a long-cherished wish. There are only twenty crosses in the whole poem, and the heart of loyalty to the country is awe-inspiring. After reading for thousands of years, I am easily moved.

The poet said in his poem that his heart of serving the country will remain unchanged until death, even after death. The main idea of the poem is that although he died, Haoran returned to space righteously, and he still stayed between heaven and earth with a bitter heart that will shine forever for generations. I haven't had time to serve my country in my life, and I have to stay as a loyal soul after my death to make up for it.