franca-theme-blog/templates/base.j2

35 lines
1006 B
Plaintext
Raw Normal View History

2023-07-23 08:47:23 +00:00
{% 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 %}
2023-07-22 13:18:15 +00:00
<!DOCTYPE html>
<html lang="{{ language }}">
{% include "components/head.j2" %}
<body>
{% include "components/header.j2" %}
2023-07-28 18:05:28 +00:00
{% include "components/social.j2" %}
{% if config.pagefind %}
{% include "components/search.j2" %}
{% endif %}
2023-07-22 13:18:15 +00:00
<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>