I think here it should be ``{% if hang_type == 'hang-p' %}`` (instead of ``"hang"``)