{% 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" %}
{% if page.extra.copy is defined %}{% set allow_copy = page.extra.copy %}{% else %}{% set allow_copy = config.extra.copy %}{% endif %} {% if allow_copy %} {% set copy_icon = load_data(path="static/icon/copy.svg") %} {% set check_icon = load_data(path="static/icon/check.svg") %} {% endif %} {% set backlink_icon = load_data(path="static/icon/backlink.svg") %}

{{ page.title }}

{{ page.date | date }} {% if page.updated and page.updated != page.date -%} Updated: {{ page.updated | date }} {% endif -%}
{% if page.extra.display_tags is defined %}{% set display_tags = page.extra.display_tags %}{% elif config.extra.display_tags is defined %}{% set display_tags = config.extra.display_tags %}{% else %}{% set display_tags = true %}{% endif %} {% if page.taxonomies.tags is defined and display_tags == true %}
{% 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 = config.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 = config.extra.outdate_alert_days %}{% endif %} {% if show_outdate_alert -%} {% endif %} {% if page.extra.truncate_summary is defined %}{% set truncate_summary = page.extra.truncate_summary %}{% elif config.extra.truncate_summary is defined %}{% set truncate_summary = config.extra.truncate_summary %}{% else %}{% set truncate_summary = false %}{% endif %} {% if truncate_summary == true and page.summary %} {{ page.content | trim_start_matches(pat=page.summary) | safe }} {% else %} {{ page.content | safe }} {% endif %}
{% if page.extra.comment is defined %}{% set show_comment = page.extra.comment %}{% else %}{% set show_comment = config.extra.comment %}{% endif %} {% if show_comment %}
{% include "_giscus_script.html" %} {% endif %}
{% include "_footer.html" %}
{% endblock content %} {% block script %} {% endblock script %}