- {% block site_nav %}
+ {%- block site_nav -%}
- {% if nav %}
+ {%- if nav -%}
- {% endif %}
+ {%- endif -%}
- {% if page.toc %}
+ {%- if page.toc -%}
- {% endif %}
- {% endblock %}
+ {%- endif -%}
+ {%- endblock -%}
- {% block content %}
+ {%- block content -%}
- {% if page.edit_url %}
+ {%- if page.edit_url -%}
- {% endif %}
+ {%- endif -%}
- {% if not "\x3ch1" in page.content %}
+ {%- if not "\x3ch1" in page.content -%}
{{ page.title | default(config.site_name, true)}}
- {% endif %}
+ {%- endif -%}
{{ page.content }}
- {% block source %}
- {% if page and page.meta and page.meta.source %}
+ {%- block source -%}
+ {%- if page and page.meta and page.meta.source -%}
{{ lang.t("meta.source") }}
- {% set repo = config.repo_url %}
- {% if repo | last == "/" %}
- {% set repo = repo[:-1] %}
- {% endif %}
- {% set path = page.meta.path | default([""]) %}
- {% set file = page.meta.source %}
+ {%- set repo = config.repo_url -%}
+ {%- if repo | last == "/" -%}
+ {%- set repo = repo[:-1] -%}
+ {%- endif -%}
+ {%- set path = page.meta.path | default([""]) -%}
+ {%- set file = page.meta.source -%}
{{ file }}
- {% endif %}
- {% endblock %}
- {% endblock %}
+ {%- endif -%}
+ {%- endblock -%}
+ {%- endblock -%}
- {% block disqus %}
- {% include "partials/integrations/disqus.html" %}
- {% endblock %}
+ {%- block disqus -%}
+ {%- include "partials/integrations/disqus.html" -%}
+ {%- endblock -%}