mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Removed remaining whitespace control tags
This commit is contained in:
parent
91f2289587
commit
e24f2a3d7e
File diff suppressed because one or more lines are too long
@ -14,9 +14,9 @@
|
||||
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
|
||||
<span class="md-flex__ellipsis">
|
||||
<span class="md-footer-nav__direction">
|
||||
{{- lang.t("footer.previous") -}}
|
||||
{{ lang.t("footer.previous") }}
|
||||
</span>
|
||||
{{- page.previous_page.title -}}
|
||||
{{ page.previous_page.title }}
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
@ -26,9 +26,9 @@
|
||||
<div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
|
||||
<span class="md-flex__ellipsis">
|
||||
<span class="md-footer-nav__direction">
|
||||
{{- lang.t("footer.next") -}}
|
||||
{{ lang.t("footer.next") }}
|
||||
</span>
|
||||
{{- page.next_page.title -}}
|
||||
{{ page.next_page.title }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="md-flex__cell md-flex__cell--shrink">
|
||||
@ -44,7 +44,7 @@
|
||||
<div class="md-footer-copyright">
|
||||
{% if config.copyright %}
|
||||
<div class="md-footer-copyright__highlight">
|
||||
{{- config.copyright -}}
|
||||
{{ config.copyright }}
|
||||
</div>
|
||||
{% endif %}
|
||||
powered by
|
||||
|
@ -7,7 +7,7 @@
|
||||
<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">
|
||||
{% if config.theme.logo.icon %}
|
||||
<i class="md-icon">{{- config.theme.logo.icon -}}</i>
|
||||
<i class="md-icon">{{ config.theme.logo.icon }}</i>
|
||||
{% else %}
|
||||
<img src="{{ config.theme.logo | url }}" width="24" height="24">
|
||||
{% endif %}
|
||||
@ -22,13 +22,13 @@
|
||||
{{ config.site_name }}
|
||||
{% else %}
|
||||
<span class="md-header-nav__topic">
|
||||
{{- config.site_name -}}
|
||||
{{ config.site_name }}
|
||||
</span>
|
||||
<span class="md-header-nav__topic">
|
||||
{% if page and page.meta and page.meta.title %}
|
||||
{{- page.meta.title -}}
|
||||
{{ page.meta.title }}
|
||||
{% else %}
|
||||
{{- page.title -}}
|
||||
{{ page.title }}
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
@ -8,6 +8,6 @@
|
||||
{% endif %}
|
||||
<div class="{{ class }}" data-md-component="hero">
|
||||
<div class="md-hero__inner md-grid">
|
||||
{{- page.meta.hero -}}
|
||||
{{ page.meta.hero }}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -13,11 +13,11 @@
|
||||
<input class="md-toggle md-nav__toggle" data-md-toggle="{{ path }}" type="checkbox" id="{{ path }}">
|
||||
{% endif %}
|
||||
<label class="md-nav__link" for="{{ path }}">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</label>
|
||||
<nav class="md-nav" data-md-component="collapsible" data-md-level="{{ level }}">
|
||||
<label class="md-nav__title" for="{{ path }}">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</label>
|
||||
<ul class="md-nav__list" data-md-scrollfix>
|
||||
{% set base = path %}
|
||||
@ -38,11 +38,11 @@
|
||||
{% endif %}
|
||||
{% if toc_ | first is defined %}
|
||||
<label class="md-nav__link md-nav__link--active" for="__toc">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</label>
|
||||
{% endif %}
|
||||
<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>
|
||||
{% if toc_ | first is defined %}
|
||||
{% include "partials/toc.html" %}
|
||||
@ -51,7 +51,7 @@
|
||||
{% else %}
|
||||
<li class="{{ class }}">
|
||||
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
@ -5,12 +5,12 @@
|
||||
<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">
|
||||
{% if config.theme.logo.icon %}
|
||||
<i class="md-icon">{{- config.theme.logo.icon -}}</i>
|
||||
<i class="md-icon">{{ config.theme.logo.icon }}</i>
|
||||
{% else %}
|
||||
<img src="{{ config.theme.logo | url }}" width="48" height="48">
|
||||
{% endif %}
|
||||
</a>
|
||||
{{- config.site_name -}}
|
||||
{{ config.site_name }}
|
||||
</label>
|
||||
{% if config.repo_url %}
|
||||
<div class="md-nav__source">
|
||||
|
@ -1,7 +1,7 @@
|
||||
{#-
|
||||
This file was automatically generated - do not edit
|
||||
-#}
|
||||
{% macro primary(key) %}{{- {
|
||||
{% macro primary(key) %}{{ {
|
||||
"red": "#ef5350",
|
||||
"pink": "#e91e63",
|
||||
"purple": "#ab47bc",
|
||||
@ -21,8 +21,8 @@
|
||||
"brown": "#795548",
|
||||
"grey": "#757575",
|
||||
"blue-grey": "#546e7a"
|
||||
}[key] -}}{% endmacro %}
|
||||
{% macro accent(key) %}{{- {
|
||||
}[key] }}{% endmacro %}
|
||||
{% macro accent(key) %}{{ {
|
||||
"red": "#ff1744",
|
||||
"pink": "#f50057",
|
||||
"purple": "#e040fb",
|
||||
@ -39,4 +39,4 @@
|
||||
"amber": "#ffab00",
|
||||
"orange": "#ff9100",
|
||||
"deep-orange": "#ff6e40"
|
||||
}[key] -}}{% endmacro %}
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -16,7 +16,7 @@
|
||||
<div class="md-search__scrollwrap" data-md-scrollfix>
|
||||
<div class="md-search-result" data-md-component="result">
|
||||
<div class="md-search-result__meta">
|
||||
{{- lang.t("search.result.placeholder") -}}
|
||||
{{ lang.t("search.result.placeholder") }}
|
||||
</div>
|
||||
<ol class="md-search-result__list"></ol>
|
||||
</div>
|
||||
|
@ -21,6 +21,6 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="md-source__repository">
|
||||
{{- config.repo_name -}}
|
||||
{{ config.repo_name }}
|
||||
</div>
|
||||
</a>
|
||||
|
@ -5,11 +5,11 @@
|
||||
<li class="md-tabs__item">
|
||||
{% 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">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}" class="md-tabs__link">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
@ -22,11 +22,11 @@
|
||||
<li class="md-tabs__item">
|
||||
{% if nav_item.active %}
|
||||
<a href="{{ (nav_item.children | first).url | url }}" title="{{ title }}" class="md-tabs__link md-tabs__link--active">
|
||||
{{- title -}}
|
||||
{{ title }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ (nav_item.children | first).url | url }}" title="{{ title }}" class="md-tabs__link">
|
||||
{{- title -}}
|
||||
{{ title }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
|
@ -3,7 +3,7 @@
|
||||
-#}
|
||||
<li class="md-nav__item">
|
||||
<a href="{{ toc_item.url }}" title="{{ toc_item.title }}" class="md-nav__link">
|
||||
{{- toc_item.title -}}
|
||||
{{ toc_item.title }}
|
||||
</a>
|
||||
{% if toc_item.children %}
|
||||
<nav class="md-nav">
|
||||
|
@ -8,7 +8,7 @@
|
||||
{% set toc_ = (toc_ | first).children %}
|
||||
{% endif %}
|
||||
{% 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>
|
||||
{% for toc_item in toc_ %}
|
||||
{% include "partials/toc-item.html" %}
|
||||
@ -16,7 +16,7 @@
|
||||
{% if page.meta.source and page.meta.source | length > 0 %}
|
||||
<li class="md-nav__item">
|
||||
<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>
|
||||
</li>
|
||||
{% endif %}
|
||||
@ -27,7 +27,7 @@
|
||||
{% if not page.is_homepage and disqus %}
|
||||
<li class="md-nav__item">
|
||||
<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>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
@ -44,9 +44,9 @@
|
||||
md-footer-nav__title">
|
||||
<span class="md-flex__ellipsis">
|
||||
<span class="md-footer-nav__direction">
|
||||
{{- lang.t("footer.previous") -}}
|
||||
{{ lang.t("footer.previous") }}
|
||||
</span>
|
||||
{{- page.previous_page.title -}}
|
||||
{{ page.previous_page.title }}
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
@ -62,9 +62,9 @@
|
||||
md-footer-nav__title">
|
||||
<span class="md-flex__ellipsis">
|
||||
<span class="md-footer-nav__direction">
|
||||
{{- lang.t("footer.next") -}}
|
||||
{{ lang.t("footer.next") }}
|
||||
</span>
|
||||
{{- page.next_page.title -}}
|
||||
{{ page.next_page.title }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="md-flex__cell md-flex__cell--shrink">
|
||||
@ -85,7 +85,7 @@
|
||||
<div class="md-footer-copyright">
|
||||
{% if config.copyright %}
|
||||
<div class="md-footer-copyright__highlight">
|
||||
{{- config.copyright -}}
|
||||
{{ config.copyright }}
|
||||
</div>
|
||||
{% endif %}
|
||||
powered by
|
||||
|
@ -33,7 +33,7 @@
|
||||
title="{{ config.site_name }}"
|
||||
class="md-header-nav__button md-logo">
|
||||
{% if config.theme.logo.icon %}
|
||||
<i class="md-icon">{{- config.theme.logo.icon -}}</i>
|
||||
<i class="md-icon">{{ config.theme.logo.icon }}</i>
|
||||
{% else %}
|
||||
<img src="{{ config.theme.logo | url }}" width="24" height="24" />
|
||||
{% endif %}
|
||||
@ -54,13 +54,13 @@
|
||||
{{ config.site_name }}
|
||||
{% else %}
|
||||
<span class="md-header-nav__topic">
|
||||
{{- config.site_name -}}
|
||||
{{ config.site_name }}
|
||||
</span>
|
||||
<span class="md-header-nav__topic">
|
||||
{% if page and page.meta and page.meta.title %}
|
||||
{{- page.meta.title -}}
|
||||
{{ page.meta.title }}
|
||||
{% else %}
|
||||
{{- page.title -}}
|
||||
{{ page.title }}
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
@ -32,6 +32,6 @@
|
||||
<!-- Hero teaser -->
|
||||
<div class="{{ class }}" data-md-component="hero">
|
||||
<div class="md-hero__inner md-grid">
|
||||
{{- page.meta.hero -}}
|
||||
{{ page.meta.hero }}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -41,12 +41,12 @@
|
||||
|
||||
<!-- Expand active pages -->
|
||||
<label class="md-nav__link" for="{{ path }}">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</label>
|
||||
<nav class="md-nav" data-md-component="collapsible"
|
||||
data-md-level="{{ level }}">
|
||||
<label class="md-nav__title" for="{{ path }}">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</label>
|
||||
<ul class="md-nav__list" data-md-scrollfix>
|
||||
|
||||
@ -78,12 +78,12 @@
|
||||
<!-- Render table of contents, if not empty -->
|
||||
{% if toc_ | first is defined %}
|
||||
<label class="md-nav__link md-nav__link--active" for="__toc">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</label>
|
||||
{% endif %}
|
||||
<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>
|
||||
|
||||
<!-- Show table of contents -->
|
||||
@ -97,7 +97,7 @@
|
||||
<li class="{{ class }}">
|
||||
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}"
|
||||
class="md-nav__link">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
@ -28,12 +28,12 @@
|
||||
<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 %}
|
||||
<i class="md-icon">{{- config.theme.logo.icon -}}</i>
|
||||
<i class="md-icon">{{ config.theme.logo.icon }}</i>
|
||||
{% else %}
|
||||
<img src="{{ config.theme.logo | url }}" width="48" height="48" />
|
||||
{% endif %}
|
||||
</a>
|
||||
{{- config.site_name -}}
|
||||
{{ config.site_name }}
|
||||
</label>
|
||||
|
||||
<!-- Repository containing source -->
|
||||
|
@ -21,7 +21,7 @@
|
||||
-->
|
||||
|
||||
<!-- Primary colors -->
|
||||
{% macro primary(key) %}{{- {
|
||||
{% macro primary(key) %}{{ {
|
||||
"red": "#ef5350",
|
||||
"pink": "#e91e63",
|
||||
"purple": "#ab47bc",
|
||||
@ -41,10 +41,10 @@
|
||||
"brown": "#795548",
|
||||
"grey": "#757575",
|
||||
"blue-grey": "#546e7a"
|
||||
}[key] -}}{% endmacro %}
|
||||
}[key] }}{% endmacro %}
|
||||
|
||||
<!-- Accent colors -->
|
||||
{% macro accent(key) %}{{- {
|
||||
{% macro accent(key) %}{{ {
|
||||
"red": "#ff1744",
|
||||
"pink": "#f50057",
|
||||
"purple": "#e040fb",
|
||||
@ -61,4 +61,4 @@
|
||||
"amber": "#ffab00",
|
||||
"orange": "#ff9100",
|
||||
"deep-orange": "#ff6e40"
|
||||
}[key] -}}{% endmacro %}
|
||||
}[key] }}{% endmacro %}
|
||||
|
@ -42,7 +42,7 @@
|
||||
<div class="md-search__scrollwrap" data-md-scrollfix>
|
||||
<div class="md-search-result" data-md-component="result">
|
||||
<div class="md-search-result__meta">
|
||||
{{- lang.t("search.result.placeholder") -}}
|
||||
{{ lang.t("search.result.placeholder") }}
|
||||
</div>
|
||||
<ol class="md-search-result__list"></ol>
|
||||
</div>
|
||||
|
@ -48,6 +48,6 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="md-source__repository">
|
||||
{{- config.repo_name -}}
|
||||
{{ config.repo_name }}
|
||||
</div>
|
||||
</a>
|
||||
|
@ -26,12 +26,12 @@
|
||||
{% 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">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title }}"
|
||||
class="md-tabs__link">
|
||||
{{- nav_item.title -}}
|
||||
{{ nav_item.title }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
@ -51,12 +51,12 @@
|
||||
{% if nav_item.active %}
|
||||
<a href="{{ (nav_item.children | first).url | url }}"
|
||||
title="{{ title }}" class="md-tabs__link md-tabs__link--active">
|
||||
{{- title -}}
|
||||
{{ title }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ (nav_item.children | first).url | url }}"
|
||||
title="{{ title }}" class="md-tabs__link">
|
||||
{{- title -}}
|
||||
{{ title }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<li class="md-nav__item">
|
||||
<a href="{{ toc_item.url }}" title="{{ toc_item.title }}"
|
||||
class="md-nav__link">
|
||||
{{- toc_item.title -}}
|
||||
{{ toc_item.title }}
|
||||
</a>
|
||||
|
||||
<!-- Render nested item list -->
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
<!-- Render item list -->
|
||||
{% 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>
|
||||
{% for toc_item in toc_ %}
|
||||
{% include "partials/toc-item.html" %}
|
||||
@ -49,7 +49,7 @@
|
||||
<li class="md-nav__item">
|
||||
<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>
|
||||
</li>
|
||||
{% endif %}
|
||||
@ -65,7 +65,7 @@
|
||||
<li class="md-nav__item">
|
||||
<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>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user