1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2025-01-18 17:04:09 +01:00

Removed remaining whitespace control tags

This commit is contained in:
squidfunk 2019-06-15 15:23:03 +02:00
parent 91f2289587
commit e24f2a3d7e
23 changed files with 63 additions and 63 deletions

File diff suppressed because one or more lines are too long

View File

@ -14,9 +14,9 @@
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"> <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
<span class="md-flex__ellipsis"> <span class="md-flex__ellipsis">
<span class="md-footer-nav__direction"> <span class="md-footer-nav__direction">
{{- lang.t("footer.previous") -}} {{ lang.t("footer.previous") }}
</span> </span>
{{- page.previous_page.title -}} {{ page.previous_page.title }}
</span> </span>
</div> </div>
</a> </a>
@ -26,9 +26,9 @@
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"> <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
<span class="md-flex__ellipsis"> <span class="md-flex__ellipsis">
<span class="md-footer-nav__direction"> <span class="md-footer-nav__direction">
{{- lang.t("footer.next") -}} {{ lang.t("footer.next") }}
</span> </span>
{{- page.next_page.title -}} {{ page.next_page.title }}
</span> </span>
</div> </div>
<div class="md-flex__cell md-flex__cell--shrink"> <div class="md-flex__cell md-flex__cell--shrink">
@ -44,7 +44,7 @@
<div class="md-footer-copyright"> <div class="md-footer-copyright">
{% if config.copyright %} {% if config.copyright %}
<div class="md-footer-copyright__highlight"> <div class="md-footer-copyright__highlight">
{{- config.copyright -}} {{ config.copyright }}
</div> </div>
{% endif %} {% endif %}
powered by powered by

View File

@ -7,7 +7,7 @@
<div class="md-flex__cell md-flex__cell--shrink"> <div class="md-flex__cell md-flex__cell--shrink">
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name }}" class="md-header-nav__button md-logo"> <a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name }}" class="md-header-nav__button md-logo">
{% if config.theme.logo.icon %} {% if config.theme.logo.icon %}
<i class="md-icon">{{- config.theme.logo.icon -}}</i> <i class="md-icon">{{ config.theme.logo.icon }}</i>
{% else %} {% else %}
<img src="{{ config.theme.logo | url }}" width="24" height="24"> <img src="{{ config.theme.logo | url }}" width="24" height="24">
{% endif %} {% endif %}
@ -22,13 +22,13 @@
{{ config.site_name }} {{ config.site_name }}
{% else %} {% else %}
<span class="md-header-nav__topic"> <span class="md-header-nav__topic">
{{- config.site_name -}} {{ config.site_name }}
</span> </span>
<span class="md-header-nav__topic"> <span class="md-header-nav__topic">
{% if page and page.meta and page.meta.title %} {% if page and page.meta and page.meta.title %}
{{- page.meta.title -}} {{ page.meta.title }}
{% else %} {% else %}
{{- page.title -}} {{ page.title }}
{% endif %} {% endif %}
</span> </span>
{% endif %} {% endif %}

View File

@ -8,6 +8,6 @@
{% endif %} {% endif %}
<div class="{{ class }}" data-md-component="hero"> <div class="{{ class }}" data-md-component="hero">
<div class="md-hero__inner md-grid"> <div class="md-hero__inner md-grid">
{{- page.meta.hero -}} {{ page.meta.hero }}
</div> </div>
</div> </div>

View File

@ -13,11 +13,11 @@
<input class="md-toggle md-nav__toggle" data-md-toggle="{{ path }}" type="checkbox" id="{{ path }}"> <input class="md-toggle md-nav__toggle" data-md-toggle="{{ path }}" type="checkbox" id="{{ path }}">
{% endif %} {% endif %}
<label class="md-nav__link" for="{{ path }}"> <label class="md-nav__link" for="{{ path }}">
{{- nav_item.title -}} {{ nav_item.title }}
</label> </label>
<nav class="md-nav" data-md-component="collapsible" data-md-level="{{ level }}"> <nav class="md-nav" data-md-component="collapsible" data-md-level="{{ level }}">
<label class="md-nav__title" for="{{ path }}"> <label class="md-nav__title" for="{{ path }}">
{{- nav_item.title -}} {{ nav_item.title }}
</label> </label>
<ul class="md-nav__list" data-md-scrollfix> <ul class="md-nav__list" data-md-scrollfix>
{% set base = path %} {% set base = path %}
@ -38,11 +38,11 @@
{% endif %} {% endif %}
{% if toc_ | first is defined %} {% if toc_ | first is defined %}
<label class="md-nav__link md-nav__link--active" for="__toc"> <label class="md-nav__link md-nav__link--active" for="__toc">
{{- nav_item.title -}} {{ nav_item.title }}
</label> </label>
{% endif %} {% endif %}
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link md-nav__link--active"> <a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link md-nav__link--active">
{{- nav_item.title -}} {{ nav_item.title }}
</a> </a>
{% if toc_ | first is defined %} {% if toc_ | first is defined %}
{% include "partials/toc.html" %} {% include "partials/toc.html" %}
@ -51,7 +51,7 @@
{% else %} {% else %}
<li class="{{ class }}"> <li class="{{ class }}">
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link"> <a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link">
{{- nav_item.title -}} {{ nav_item.title }}
</a> </a>
</li> </li>
{% endif %} {% endif %}

View File

@ -5,12 +5,12 @@
<label class="md-nav__title md-nav__title--site" for="__drawer"> <label class="md-nav__title md-nav__title--site" for="__drawer">
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name }}" class="md-nav__button md-logo"> <a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name }}" class="md-nav__button md-logo">
{% if config.theme.logo.icon %} {% if config.theme.logo.icon %}
<i class="md-icon">{{- config.theme.logo.icon -}}</i> <i class="md-icon">{{ config.theme.logo.icon }}</i>
{% else %} {% else %}
<img src="{{ config.theme.logo | url }}" width="48" height="48"> <img src="{{ config.theme.logo | url }}" width="48" height="48">
{% endif %} {% endif %}
</a> </a>
{{- config.site_name -}} {{ config.site_name }}
</label> </label>
{% if config.repo_url %} {% if config.repo_url %}
<div class="md-nav__source"> <div class="md-nav__source">

View File

@ -1,7 +1,7 @@
{#- {#-
This file was automatically generated - do not edit This file was automatically generated - do not edit
-#} -#}
{% macro primary(key) %}{{- { {% macro primary(key) %}{{ {
"red": "#ef5350", "red": "#ef5350",
"pink": "#e91e63", "pink": "#e91e63",
"purple": "#ab47bc", "purple": "#ab47bc",
@ -21,8 +21,8 @@
"brown": "#795548", "brown": "#795548",
"grey": "#757575", "grey": "#757575",
"blue-grey": "#546e7a" "blue-grey": "#546e7a"
}[key] -}}{% endmacro %} }[key] }}{% endmacro %}
{% macro accent(key) %}{{- { {% macro accent(key) %}{{ {
"red": "#ff1744", "red": "#ff1744",
"pink": "#f50057", "pink": "#f50057",
"purple": "#e040fb", "purple": "#e040fb",
@ -39,4 +39,4 @@
"amber": "#ffab00", "amber": "#ffab00",
"orange": "#ff9100", "orange": "#ff9100",
"deep-orange": "#ff6e40" "deep-orange": "#ff6e40"
}[key] -}}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -16,7 +16,7 @@
<div class="md-search__scrollwrap" data-md-scrollfix> <div class="md-search__scrollwrap" data-md-scrollfix>
<div class="md-search-result" data-md-component="result"> <div class="md-search-result" data-md-component="result">
<div class="md-search-result__meta"> <div class="md-search-result__meta">
{{- lang.t("search.result.placeholder") -}} {{ lang.t("search.result.placeholder") }}
</div> </div>
<ol class="md-search-result__list"></ol> <ol class="md-search-result__list"></ol>
</div> </div>

View File

@ -21,6 +21,6 @@
</div> </div>
{% endif %} {% endif %}
<div class="md-source__repository"> <div class="md-source__repository">
{{- config.repo_name -}} {{ config.repo_name }}
</div> </div>
</a> </a>

View File

@ -5,11 +5,11 @@
<li class="md-tabs__item"> <li class="md-tabs__item">
{% if not page.ancestors | length and nav | selectattr("url", page.url) %} {% if not page.ancestors | length and nav | selectattr("url", page.url) %}
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}" class="md-tabs__link md-tabs__link--active"> <a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}" class="md-tabs__link md-tabs__link--active">
{{- nav_item.title -}} {{ nav_item.title }}
</a> </a>
{% else %} {% else %}
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}" class="md-tabs__link"> <a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}" class="md-tabs__link">
{{- nav_item.title -}} {{ nav_item.title }}
</a> </a>
{% endif %} {% endif %}
</li> </li>
@ -22,11 +22,11 @@
<li class="md-tabs__item"> <li class="md-tabs__item">
{% if nav_item.active %} {% if nav_item.active %}
<a href="{{ (nav_item.children | first).url | url }}" title="{{ title }}" class="md-tabs__link md-tabs__link--active"> <a href="{{ (nav_item.children | first).url | url }}" title="{{ title }}" class="md-tabs__link md-tabs__link--active">
{{- title -}} {{ title }}
</a> </a>
{% else %} {% else %}
<a href="{{ (nav_item.children | first).url | url }}" title="{{ title }}" class="md-tabs__link"> <a href="{{ (nav_item.children | first).url | url }}" title="{{ title }}" class="md-tabs__link">
{{- title -}} {{ title }}
</a> </a>
{% endif %} {% endif %}
</li> </li>

View File

@ -3,7 +3,7 @@
-#} -#}
<li class="md-nav__item"> <li class="md-nav__item">
<a href="{{ toc_item.url }}" title="{{ toc_item.title }}" class="md-nav__link"> <a href="{{ toc_item.url }}" title="{{ toc_item.title }}" class="md-nav__link">
{{- toc_item.title -}} {{ toc_item.title }}
</a> </a>
{% if toc_item.children %} {% if toc_item.children %}
<nav class="md-nav"> <nav class="md-nav">

View File

@ -8,7 +8,7 @@
{% set toc_ = (toc_ | first).children %} {% set toc_ = (toc_ | first).children %}
{% endif %} {% endif %}
{% if toc_ | first is defined %} {% if toc_ | first is defined %}
<label class="md-nav__title" for="__toc">{{- lang.t("toc.title") -}}</label> <label class="md-nav__title" for="__toc">{{ lang.t("toc.title") }}</label>
<ul class="md-nav__list" data-md-scrollfix> <ul class="md-nav__list" data-md-scrollfix>
{% for toc_item in toc_ %} {% for toc_item in toc_ %}
{% include "partials/toc-item.html" %} {% include "partials/toc-item.html" %}
@ -16,7 +16,7 @@
{% if page.meta.source and page.meta.source | length > 0 %} {% if page.meta.source and page.meta.source | length > 0 %}
<li class="md-nav__item"> <li class="md-nav__item">
<a href="#__source" title="{{ lang.t('meta.source') }}" class="md-nav__link md-nav__link--active"> <a href="#__source" title="{{ lang.t('meta.source') }}" class="md-nav__link md-nav__link--active">
{{- lang.t("meta.source") -}} {{ lang.t("meta.source") }}
</a> </a>
</li> </li>
{% endif %} {% endif %}
@ -27,7 +27,7 @@
{% if not page.is_homepage and disqus %} {% if not page.is_homepage and disqus %}
<li class="md-nav__item"> <li class="md-nav__item">
<a href="#__comments" title="{{ lang.t('meta.comments') }}" class="md-nav__link md-nav__link--active"> <a href="#__comments" title="{{ lang.t('meta.comments') }}" class="md-nav__link md-nav__link--active">
{{- lang.t("meta.comments") -}} {{ lang.t("meta.comments") }}
</a> </a>
</li> </li>
{% endif %} {% endif %}

View File

@ -44,9 +44,9 @@
md-footer-nav__title"> md-footer-nav__title">
<span class="md-flex__ellipsis"> <span class="md-flex__ellipsis">
<span class="md-footer-nav__direction"> <span class="md-footer-nav__direction">
{{- lang.t("footer.previous") -}} {{ lang.t("footer.previous") }}
</span> </span>
{{- page.previous_page.title -}} {{ page.previous_page.title }}
</span> </span>
</div> </div>
</a> </a>
@ -62,9 +62,9 @@
md-footer-nav__title"> md-footer-nav__title">
<span class="md-flex__ellipsis"> <span class="md-flex__ellipsis">
<span class="md-footer-nav__direction"> <span class="md-footer-nav__direction">
{{- lang.t("footer.next") -}} {{ lang.t("footer.next") }}
</span> </span>
{{- page.next_page.title -}} {{ page.next_page.title }}
</span> </span>
</div> </div>
<div class="md-flex__cell md-flex__cell--shrink"> <div class="md-flex__cell md-flex__cell--shrink">
@ -85,7 +85,7 @@
<div class="md-footer-copyright"> <div class="md-footer-copyright">
{% if config.copyright %} {% if config.copyright %}
<div class="md-footer-copyright__highlight"> <div class="md-footer-copyright__highlight">
{{- config.copyright -}} {{ config.copyright }}
</div> </div>
{% endif %} {% endif %}
powered by powered by

View File

@ -33,7 +33,7 @@
title="{{ config.site_name }}" title="{{ config.site_name }}"
class="md-header-nav__button md-logo"> class="md-header-nav__button md-logo">
{% if config.theme.logo.icon %} {% if config.theme.logo.icon %}
<i class="md-icon">{{- config.theme.logo.icon -}}</i> <i class="md-icon">{{ config.theme.logo.icon }}</i>
{% else %} {% else %}
<img src="{{ config.theme.logo | url }}" width="24" height="24" /> <img src="{{ config.theme.logo | url }}" width="24" height="24" />
{% endif %} {% endif %}
@ -54,13 +54,13 @@
{{ config.site_name }} {{ config.site_name }}
{% else %} {% else %}
<span class="md-header-nav__topic"> <span class="md-header-nav__topic">
{{- config.site_name -}} {{ config.site_name }}
</span> </span>
<span class="md-header-nav__topic"> <span class="md-header-nav__topic">
{% if page and page.meta and page.meta.title %} {% if page and page.meta and page.meta.title %}
{{- page.meta.title -}} {{ page.meta.title }}
{% else %} {% else %}
{{- page.title -}} {{ page.title }}
{% endif %} {% endif %}
</span> </span>
{% endif %} {% endif %}

View File

@ -32,6 +32,6 @@
<!-- Hero teaser --> <!-- Hero teaser -->
<div class="{{ class }}" data-md-component="hero"> <div class="{{ class }}" data-md-component="hero">
<div class="md-hero__inner md-grid"> <div class="md-hero__inner md-grid">
{{- page.meta.hero -}} {{ page.meta.hero }}
</div> </div>
</div> </div>

View File

@ -41,12 +41,12 @@
<!-- Expand active pages --> <!-- Expand active pages -->
<label class="md-nav__link" for="{{ path }}"> <label class="md-nav__link" for="{{ path }}">
{{- nav_item.title -}} {{ nav_item.title }}
</label> </label>
<nav class="md-nav" data-md-component="collapsible" <nav class="md-nav" data-md-component="collapsible"
data-md-level="{{ level }}"> data-md-level="{{ level }}">
<label class="md-nav__title" for="{{ path }}"> <label class="md-nav__title" for="{{ path }}">
{{- nav_item.title -}} {{ nav_item.title }}
</label> </label>
<ul class="md-nav__list" data-md-scrollfix> <ul class="md-nav__list" data-md-scrollfix>
@ -78,12 +78,12 @@
<!-- Render table of contents, if not empty --> <!-- Render table of contents, if not empty -->
{% if toc_ | first is defined %} {% if toc_ | first is defined %}
<label class="md-nav__link md-nav__link--active" for="__toc"> <label class="md-nav__link md-nav__link--active" for="__toc">
{{- nav_item.title -}} {{ nav_item.title }}
</label> </label>
{% endif %} {% endif %}
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" <a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}"
class="md-nav__link md-nav__link--active"> class="md-nav__link md-nav__link--active">
{{- nav_item.title -}} {{ nav_item.title }}
</a> </a>
<!-- Show table of contents --> <!-- Show table of contents -->
@ -97,7 +97,7 @@
<li class="{{ class }}"> <li class="{{ class }}">
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" <a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}"
class="md-nav__link"> class="md-nav__link">
{{- nav_item.title -}} {{ nav_item.title }}
</a> </a>
</li> </li>
{% endif %} {% endif %}

View File

@ -28,12 +28,12 @@
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" <a href="{{ config.site_url | default(nav.homepage.url, true) | url }}"
title="{{ config.site_name }}" class="md-nav__button md-logo"> title="{{ config.site_name }}" class="md-nav__button md-logo">
{% if config.theme.logo.icon %} {% if config.theme.logo.icon %}
<i class="md-icon">{{- config.theme.logo.icon -}}</i> <i class="md-icon">{{ config.theme.logo.icon }}</i>
{% else %} {% else %}
<img src="{{ config.theme.logo | url }}" width="48" height="48" /> <img src="{{ config.theme.logo | url }}" width="48" height="48" />
{% endif %} {% endif %}
</a> </a>
{{- config.site_name -}} {{ config.site_name }}
</label> </label>
<!-- Repository containing source --> <!-- Repository containing source -->

View File

@ -21,7 +21,7 @@
--> -->
<!-- Primary colors --> <!-- Primary colors -->
{% macro primary(key) %}{{- { {% macro primary(key) %}{{ {
"red": "#ef5350", "red": "#ef5350",
"pink": "#e91e63", "pink": "#e91e63",
"purple": "#ab47bc", "purple": "#ab47bc",
@ -41,10 +41,10 @@
"brown": "#795548", "brown": "#795548",
"grey": "#757575", "grey": "#757575",
"blue-grey": "#546e7a" "blue-grey": "#546e7a"
}[key] -}}{% endmacro %} }[key] }}{% endmacro %}
<!-- Accent colors --> <!-- Accent colors -->
{% macro accent(key) %}{{- { {% macro accent(key) %}{{ {
"red": "#ff1744", "red": "#ff1744",
"pink": "#f50057", "pink": "#f50057",
"purple": "#e040fb", "purple": "#e040fb",
@ -61,4 +61,4 @@
"amber": "#ffab00", "amber": "#ffab00",
"orange": "#ff9100", "orange": "#ff9100",
"deep-orange": "#ff6e40" "deep-orange": "#ff6e40"
}[key] -}}{% endmacro %} }[key] }}{% endmacro %}

View File

@ -42,7 +42,7 @@
<div class="md-search__scrollwrap" data-md-scrollfix> <div class="md-search__scrollwrap" data-md-scrollfix>
<div class="md-search-result" data-md-component="result"> <div class="md-search-result" data-md-component="result">
<div class="md-search-result__meta"> <div class="md-search-result__meta">
{{- lang.t("search.result.placeholder") -}} {{ lang.t("search.result.placeholder") }}
</div> </div>
<ol class="md-search-result__list"></ol> <ol class="md-search-result__list"></ol>
</div> </div>

View File

@ -48,6 +48,6 @@
</div> </div>
{% endif %} {% endif %}
<div class="md-source__repository"> <div class="md-source__repository">
{{- config.repo_name -}} {{ config.repo_name }}
</div> </div>
</a> </a>

View File

@ -26,12 +26,12 @@
{% if not page.ancestors | length and nav | selectattr("url", page.url) %} {% if not page.ancestors | length and nav | selectattr("url", page.url) %}
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}" <a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}"
class="md-tabs__link md-tabs__link--active"> class="md-tabs__link md-tabs__link--active">
{{- nav_item.title -}} {{ nav_item.title }}
</a> </a>
{% else %} {% else %}
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}" <a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}"
class="md-tabs__link"> class="md-tabs__link">
{{- nav_item.title -}} {{ nav_item.title }}
</a> </a>
{% endif %} {% endif %}
</li> </li>
@ -51,12 +51,12 @@
{% if nav_item.active %} {% if nav_item.active %}
<a href="{{ (nav_item.children | first).url | url }}" <a href="{{ (nav_item.children | first).url | url }}"
title="{{ title }}" class="md-tabs__link md-tabs__link--active"> title="{{ title }}" class="md-tabs__link md-tabs__link--active">
{{- title -}} {{ title }}
</a> </a>
{% else %} {% else %}
<a href="{{ (nav_item.children | first).url | url }}" <a href="{{ (nav_item.children | first).url | url }}"
title="{{ title }}" class="md-tabs__link"> title="{{ title }}" class="md-tabs__link">
{{- title -}} {{ title }}
</a> </a>
{% endif %} {% endif %}
</li> </li>

View File

@ -24,7 +24,7 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href="{{ toc_item.url }}" title="{{ toc_item.title }}" <a href="{{ toc_item.url }}" title="{{ toc_item.title }}"
class="md-nav__link"> class="md-nav__link">
{{- toc_item.title -}} {{ toc_item.title }}
</a> </a>
<!-- Render nested item list --> <!-- Render nested item list -->

View File

@ -38,7 +38,7 @@
<!-- Render item list --> <!-- Render item list -->
{% if toc_ | first is defined %} {% if toc_ | first is defined %}
<label class="md-nav__title" for="__toc">{{- lang.t("toc.title") -}}</label> <label class="md-nav__title" for="__toc">{{ lang.t("toc.title") }}</label>
<ul class="md-nav__list" data-md-scrollfix> <ul class="md-nav__list" data-md-scrollfix>
{% for toc_item in toc_ %} {% for toc_item in toc_ %}
{% include "partials/toc-item.html" %} {% include "partials/toc-item.html" %}
@ -49,7 +49,7 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href="#__source" title="{{ lang.t('meta.source') }}" <a href="#__source" title="{{ lang.t('meta.source') }}"
class="md-nav__link md-nav__link--active"> class="md-nav__link md-nav__link--active">
{{- lang.t("meta.source") -}} {{ lang.t("meta.source") }}
</a> </a>
</li> </li>
{% endif %} {% endif %}
@ -65,7 +65,7 @@
<li class="md-nav__item"> <li class="md-nav__item">
<a href="#__comments" title="{{ lang.t('meta.comments') }}" <a href="#__comments" title="{{ lang.t('meta.comments') }}"
class="md-nav__link md-nav__link--active"> class="md-nav__link md-nav__link--active">
{{- lang.t("meta.comments") -}} {{ lang.t("meta.comments") }}
</a> </a>
</li> </li>
{% endif %} {% endif %}