{# This Template Shows the Individual Blog Posts#} {% extends "base.html" %} {%- block seo %} {{- super() }} {%- set title_addition = "" %} {%- if page.title and config.title %} {%- set title = page.title %} {%- set title_addition = title_separator ~ config.title %} {%- elif page.title %} {%- set title = page.title %} {%- else %} {%- set title = config.title %} {%- endif %} {%- if page.description %} {%- set description = page.description %} {%- else %} {%- set description = config.description %} {%- endif %} {%- set created_time = page.date %} {%- set updated_time = page.updated %} {%- if current_section %} {%- set page_section = current_section %} {%- else %} {%- set page_section = "" %} {%- endif %} {{- macros_seo::seo(config=config, title=title, title_addition=title_addition, description=description, type="article", is_page=true, created_time=created_time, updated_time=updated_time, page_section=page_section) }} {%- endblock seo %} {%- block comments_init %} {%- if config.extra.comments.hyvor %} {%- endif %} {%- endblock comments_init %} {%- block content %}
{{- macros::title_post(page=page, config=config) }} {%- if config.extra.meta_post.position %} {%- if config.extra.meta_post.position == "top" or config.extra.meta_post.position == "both" %} {{- macros::meta_post(page=page, config=config) }} {%- endif %}{%- endif %} {# In Page Series Navigation #} {%- if config.extra.series | default(value=true) %} {%- if page.extra.section %} {%- set tag = get_taxonomy_term(kind="tags", term=page.extra.section, lang=lang) %} {%- set page_num = tag.page_count | as_str %} {%- if lang != config.default_language %} {%- set parts_string = trans(key="Series_parts", lang=lang) | replace(from="$NUMBER_OF_PARTS", to=page_num) %} {% else %} {%- set parts_string = config.extra.Series_parts | default(value="Series") | replace(from="$NUMBER_OF_PARTS", to=page_num) %} {% endif -%}
{{ tag.name }} ({{ parts_string }})
    {%- for inner in tag.pages | sort(attribute="year") %} {%- if inner.content == page.content %}
  1. {{ inner.title }}
  2. {% else %}
  3. {{ inner.title }}
  4. {%- endif %} {%- endfor %}
{%- endif %} {%- endif %} {{ page.content | safe }} {%- if config.extra.meta_post.position %} {%- if config.extra.meta_post.position == "bottom" or config.extra.meta_post.position == "both" %} {{- macros::meta_post(page=page, config=config) }} {%- endif %}{%- endif %} {%- block page_footer %} {{- macros::footer(page=page, config=config) }} {%- endblock page_footer %} {%- block comments_body %} {%- if config.extra.comments.hyvor %} {%- endif %} {%- endblock comments_body %}
{%- block toc %} {%- if config.extra.toc | default(value=true) %} {%- if page.extra.toc %} {%- set toc = page.toc %} {%- endif %} {%- if toc %}
{%- if page.extra.section %}
{{ parts_string }}
    {%- for inner in tag.pages | sort(attribute="year") %} {%- if inner.content == page.content %}
  1. {{ inner.title }}
  2. {% else %}
  3. {{ inner.title }}
  4. {%- endif %} {%- endfor %}
{%- endif %}
{%- if lang != config.default_language %}{{ trans(key="Index" | safe, lang=lang) }}{% else %}Index{% endif %} {%- for h in toc %}
{{ h.title }}
{%- if h.children %} {%- for h2 in h.children %} {%- endfor %} {%- endif %} {%- endfor %}
{%- endif %} {%- endif %} {%- endblock toc %} {%- endblock content %} {%- block gotop %} {%- if page.reading_time %} {%- if page.reading_time > 2 %} {%- set icon_top=config.extra.icon_top | default(value="svgs svgh angu") -%} {%- if icon_top %}{%- else %}⋏{%- endif %} {%- endif %} {%- endif %} {%- endblock gotop %}