When you get nackered on a climb, a really simple way to keep you going is to just do one more stroke. Just one more. Every time. No matter HOW tired you are you can always dig deep that bit deeper and just get one more pedal stroke.
When you ride this weekend, remind yourself to just do one more. Then another. And another.