Beatitudes in context of the other readings
Jeremiah gives the curses and blessedness of trust. If we trust in our hearts and mortal flesh we are miserable, but if we trust in God we are happy. They shall be like a tree planted by water, sending out its roots by the stream. It shall not fear when heat comes, and its leaves shall stay green; in the year of drought it is not anxious, and it does not cease to bear fruit.
The psalmist echoes that strain while extolling the blessedness of delighting in the law.
Paul also tells us not to trust the flesh, but rather tells us that we are blessed because Christ has been raised from the dead, the first fruits of those who have died.
If for this life only we have hoped in Christ, we are of all people most to be pitied.
If we fail to see Christ as risen, or trust the flesh that perishes, we are of all men most miserable. But Christ has been raised and we are counted among the men most blessed.
Dallas Willard suggests that unlike the if then formulation of the blessings and curses that formed prophetic covenants, Jesus is simply stating that those in front of him are blessed because the kingdom of heaven is at hand. He contends that the beatitudes are not prescriptions, but descriptions. See this excerpt.