- {% declare %}
- question_count = questions.count()
- show_more_questions_link = question_count > 15
- questions = questions[:15]
-
- answer_count = answers.count()
- show_more_answers_link = answer_count > 30
- answers = answers[:30]
- {% enddeclare %}
-