The great halachic concept, near the end of the tefillah (prayer), is that right before Kaddish (sanctification prayer), you open with the line, Kaveh el Hashem, chazak v'ya'ametz libecha, v'kaveh el Hashem. Hope to Hashem, strengthen your heart, and hope to Hashem again. First, the halacha (Jewish law) is that we do not say that line on Shabbat before the Kaddish on Shabbat. We only say it during the weekday.
The question is, why are we saying this line altogether? It doesn't really relate to the Kaddish itself. Well, what does it relate to? It's a pasuk (verse) in Tehillim (Psalms). Where does it come in? So the idea, it seems, is brought down to say this pasuk in Tehillim. And the idea is that the Gemara brings this pasuk and says that if someone prays and prays for something, and sees that they do not answer, the pasuk is telling you: pray again. Ask again, ask a second time, as the pasuk says, hope to Hashem, strengthen your heart, and hope again. That's what the pasuk is telling you. And it's telling us, at the end of our tefillah, to come back again. Again, try again, even if the tefillah might not seem like it was answered; try again.
Why, then, is this not said on Shabbat? What would be the logic behind that? If this is the explanation, the logic is simple. Because on Shabbat, our tefillot and our kavanot (intentions) are not asking for things. We don't ask for personal things on Shabbat. Therefore, it's not the right place to say this pasuk.
So just to note, the mindset at the end of a weekday prayer is: I finished my prayer, I tried, I hope it was answered, I'm going to come back again and try it again another time during a weekday. On Shabbat, however, that is not the mindset, because there's no hope, and there's no goal, to reach out and answer on Shabbat. Instead, we're just praying for the sake and service of Hashem. That's the kavanot, and a great day, Kavod (honor).

