{% import "post_macros.html" as post_macros %} {% if page.title -%} {%- elif section.title -%} {%- else -%} {%- endif %} {% if page.description -%} {%- elif section.description -%} {%- else -%} {%- endif %} {% if page.permalink -%} {%- elif section.permalink -%} {%- endif %} {% set keywords = [] -%} {%- if page.taxonomies.tags -%} {% set_global keywords = page.taxonomies.tags %} {%- endif -%} {%- if keywords | length == 0 -%} {%- set tags = get_taxonomy(kind="tags") -%} {%- if tags.items | length > 0 -%} {%- for tag in tags.items -%} {%- set_global keywords = keywords | concat(with=tag.name) -%} {%- endfor -%} {%- endif -%} {%- endif -%} {%- if keywords | length > 0 -%} {%- endif %} {%- block title -%} {%- if page.title -%} {{ page.title }}{{ " · " }} {%- endif -%} {%- if section.title -%} {{ section.title }}{{ " · " }} {%- endif -%} {{ config.title }} {%- endblock title -%} {% block css -%} {%- if page.extra.zenn_applause -%} {%- endif -%} {%- endblock css %} {% block js -%} {%- if page.extra.zenn_applause -%} {%- endif -%} {%- endblock js %} {% if config.generate_feed -%} {%- endif %} {%- block extra_head %} {% endblock extra_head %} {% if config.extra.zenn_title -%} {% block header %} {% endblock header %} {%- endif -%} {% block headertron %}{% endblock headertron %} {% block main %}
{% if section.title -%}

{{ section.title }} {%- if paginator -%} {% if paginator.current_index > 1 %}  ·  Page {{ paginator.current_index }} {% endif %} {%- endif -%} {%- include "anchor-link.html" -%}

{%- if not section.extra.zenn_hide_header_meta -%} {%- block header_meta -%}{%- endblock header_meta -%} {%- endif %}
{%- endif %} {% if page.title -%}

{{ page.title }} {%- include "anchor-link.html" -%}

{%- if not page.extra.zenn_hide_header_meta -%} {%- block header_meta -%}{%- endblock header_meta -%} {%- endif %}
{%- endif %} {% block body -%}{%- endblock body %} {% block page_footer %}{% endblock page_footer %}
{% endblock main %}