move footnote markup into template