35 lines
1006 B
Django/Jinja
35 lines
1006 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" %}
|
|
{% include "components/social.j2" %}
|
|
{% if config.pagefind %}
|
|
{% include "components/search.j2" %}
|
|
{% endif %}
|
|
<main>
|
|
{% if home %}
|
|
{% include "components/index.j2" %}
|
|
{% elif section %}
|
|
{% include "components/section.j2" %}
|
|
{% else %}
|
|
{% include "components/single.j2" %}
|
|
{% endif %}
|
|
</main>
|
|
{% include "components/sidebar.j2" %}
|
|
{% include "components/footer.j2" %}
|
|
{% include "components/script.j2" %}
|
|
{% include "components/schema.j2" %}
|
|
</body>
|
|
|
|
</html> |