{% import "macros/prose.html" as macros %} {% extends "_base.html" %} {% 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 %} {% elif section.description %} {% set desc = section.description %} {% else %} {% set desc = config.description %} {% endif %} {% endblock desc %} {% block head %} {% if config.markdown.highlight_theme == "css" %} {% endif %} {% if page.extra.math %} {% endif %} {% endblock head %} {% block content %}
{{ macros::back_link(path = get_url(path=section.path)) }}
{% if page.extra.copy is defined %}{% set allow_copy = page.extra.copy %}{% else %}{% set allow_copy = section.extra.copy %}{% endif %} {% if allow_copy %} {% set copy_icon = load_data(path="icon/copy.svg") %} {% set check_icon = load_data(path="icon/check.svg") %} {% endif %}

{{ page.title }}

{{ page.date | date(format=section.extra.date_format) }} {% if page.updated and page.updated != page.date -%} Updated on {{ page.updated | date(format=section.extra.date_format) }} {% endif -%}
{% if page.taxonomies.tags is defined %}
{% for tag in page.taxonomies.tags -%} {% set tag_slugify = tag | slugify -%} #{{ tag }} {%- endfor %}
{% endif %}
{% if page.extra.outdate_alert is defined %}{% set show_outdate_alert = page.extra.outdate_alert %}{% else %}{% set show_outdate_alert = section.extra.outdate_alert %}{% endif %} {% if page.extra.outdate_alert_days is defined %}{% set outdate_alert_days = page.extra.outdate_alert_days %}{% else %}{% set outdate_alert_days = section.extra.outdate_alert_days %}{% endif %} {% if show_outdate_alert -%} {% endif %} {{ page.content | safe }}
{% if page.extra.reaction is defined %}{% set show_reaction = page.extra.reaction %}{% else %}{% set show_reaction = config.extra.reaction %}{% endif %} {% if show_reaction %}
{% endif %} {% if page.extra.comment is defined %}{% set show_comment = page.extra.comment %}{% else %}{% set show_comment = section.extra.comment %}{% endif %} {% if show_comment %}
{% include "_giscus_script.html" %} {% endif %}
{% include "_footer.html" %}
{% endblock content %} {% block script %} {% if page.extra.mermaid %} {% endif %} {% endblock script %}