franca-theme-blog/templates/base.j2

32 lines
920 B
Django/Jinja

{% set title = config.languages[language].title %}
{% set description = config.languages[language].description %}
{% if section %}
{% set title = translate(section, language) | capitalize %}
{% set description = title %}
{% elif not home %}
{% set title = post.title %}
{% set description = post.description %}
{% endif %}
<!DOCTYPE html>
<html lang="{{ language }}">
{% include "components/head.j2" %}
<body>
{% include "components/header.j2" %}
<main>
{% if home %}
{% include "components/index.j2" %}
{% elif section %}
{% include "components/section.j2" %}
{% else %}
{% include "components/single.j2" %}
{% endif %}
</main>
{% include "components/social.j2" %}
{% include "components/sidebar.j2" %}
{% include "components/footer.j2" %}
{% include "components/script.j2" %}
{% include "components/schema.j2" %}
</body>
</html>