translating base layout and homepage to jinja