{% extends "_base.html" %} {% block seo -%} {{ super() }} {%- set og_title = page.title -%} {% if config.title and page.title -%} {% set title = page.title ~ " | " ~ config.title -%} {% elif page.title -%} {% set title = page.title -%} {% elif config.title -%} {% set title = config.title -%} {% else -%} {% set title = "" -%} {% endif -%} {% if page.extra.author -%} {% set author = page.extra.author -%} {% endif -%} {% if page.description -%} {% set description = page.description -%} {% endif -%} {% if page.extra.image -%} {% set image = page.extra.image -%} {% endif -%} {% if page.extra.image_height -%} {% set image_height = page.extra.image_height -%} {% endif -%} {% if page.extra.image_width -%} {% set image_width = page.extra.image_width -%} {% endif -%} {{ macros::seo(title=title, og_title=og_title, author=author, description=description, site_url=site_url, image=image, image_height=image_height, image_width=image_width) }} {%- endblock seo %} {% block page %}post{% endblock page %} {% block lang -%} {%- set blog_section_path = config.extra.blog_section_path | trim_start_matches(pat="/") -%} {%- set section_md_path = blog_section_path ~ "/_index.md" -%} {%- set section = get_section(path=section_md_path, metadata_only=true) -%} {%- if page.extra.lang %}{{page.extra.lang}}{% elif section.extra.lang %}{{section.extra.lang}}{% else %}{{page.lang}}{% endif -%} {%- endblock lang %} {% block title %}{{ page.title }}{% endblock title %} {% block desc %} {% if page.summary %} {% set desc = page.summary %} {% elif page.description %} {% set desc = page.description %} {% endif %} {% if desc %} {% endif %} {% endblock desc %} {% block head %} {% if config.markdown.highlight_theme == "css" %} {% endif %} {% if page.extra.math %} {% endif %} {% endblock head %} {% block content %} {% include "_header.html" %}