{% extends "_base.html" %} {% block page %}homepage{% endblock page%} {% block lang %}{% if section.extra.lang %}{{ section.extra.lang }}{% else %}{{ section.lang }}{% endif %}{% endblock lang %} {% block title %}{{ config.title }}{% endblock title %} {% block desc %} {%- if section.extra.lang %}{% set og_lang = section.extra.lang %}{% else %}{% set og_lang = section.lang %}{% endif -%} {{ }} {% endblock desc %} {% block head %} {% if config.markdown.highlighting.style == "class" %} {% if color_scheme == "dark" %} {% else %} {% endif %} {% endif %} {% set enable_math = section.extra.math if section.extra.math is defined else (config.extra.math if config.extra.math is defined else false) %} {% if enable_math %} {% endif %} {% endblock head %} {% block content %}
{% if config.extra.avatar %} avatar {% endif %}
{{ config.extra.name }} {% if config.extra.handle %} @{{ config.extra.handle }} {% endif %}
{% if config.extra.bio %}
{{ config.extra.bio }}
{% endif %}
{{ section.content | trim | safe }}
{% if section.extra.recent %} {% set blog_section_path = config.extra.blog_section_path | trim_start(pat="/") %} {% set section_md_path = blog_section_path ~ "/_index.md" %} {% set blog_section = get_section(path=section_md_path) %} {% set date_format = section.extra.date_format if section.extra.date_format is defined else (config.extra.date_format if config.extra.date_format is defined else "%b %-d, %Y") %}
{% for post in blog_section.pages[:section.extra.recent_max] %} {{ post.title }} {{ post.date | date(format=date_format) }} {% endfor %}
{% endif %}
{% if section.extra.footer %} {% include "_footer.html" %} {% endif %}
{% endblock content %} {% block script %} {% set enable_mermaid = section.extra.mermaid if section.extra.mermaid is defined else (config.extra.mermaid if config.extra.mermaid is defined else false) %} {% if enable_mermaid %} {% endif %} {% endblock script %}