mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01:00
Added block for tabs navigation
This commit is contained in:
parent
0bc43f43d9
commit
d41cf2f785
@ -1,6 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 89 89">
|
||||
<path d="M3.136,17.387l0,42.932l42.932,21.467l-42.932,-64.399Z" style="fill: #FFF;"/>
|
||||
<path d="M21.91,8l42.933,64.398l-18.775,9.388l-42.932,-64.399l18.774,-9.387Z" style="fill: #FFF; fill-opacity: 0.5;" />
|
||||
<path d="M67.535,17.387l-26.244,19.683l20.86,31.291l5.384,2.691l0,-53.665Z" style="fill: #FFF;" />
|
||||
<path d="M67.535,17.387l0,53.666l18.774,-9.388l0,-53.665l-18.774,9.387Z" style="fill: #fff; fill-opacity:0.25;" />
|
||||
<path d="M3.136,17.387l0,42.932l42.932,21.467l-42.932,-64.399Z" style="fill: white;"/>
|
||||
<path d="M21.91,8l42.933,64.398l-18.775,9.388l-42.932,-64.399l18.774,-9.387Z" style="fill: white; fill-opacity: 0.5;" />
|
||||
<path d="M67.535,17.387l-26.244,19.683l20.86,31.291l5.384,2.691l0,-53.665Z" style="fill: white;" />
|
||||
<path d="M67.535,17.387l0,53.666l18.774,-9.388l0,-53.665l-18.774,9.387Z" style="fill: white; fill-opacity:0.25;" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 500 B |
@ -152,14 +152,15 @@ The Material theme provides the following template blocks:
|
||||
| `fonts` | Wraps the webfont definitions |
|
||||
| `footer` | Wraps the footer with navigation and copyright |
|
||||
| `header` | Wraps the fixed header bar |
|
||||
| `hero` | Wraps the hero teaser |
|
||||
| `hero` | Wraps the hero teaser (if available) |
|
||||
| `htmltitle` | Wraps the `<title>` tag |
|
||||
| `libs` | Wraps the JavaScript libraries, e.g. Modernizr |
|
||||
| `scripts` | Wraps the JavaScript application logic |
|
||||
| `libs` | Wraps the JavaScript libraries (header) |
|
||||
| `scripts` | Wraps the JavaScript application (footer) |
|
||||
| `source` | Wraps the linked source files |
|
||||
| `site_meta` | Wraps the meta tags in the document head |
|
||||
| `site_nav` | Wraps the site navigation and table of contents |
|
||||
| `styles` | Wraps the stylesheets (also extra sources) |
|
||||
| `tabs` | Wraps the tabs navigation (if available) |
|
||||
|
||||
For more on this topic refer to the [MkDocs documentation][4]
|
||||
|
||||
|
@ -242,9 +242,11 @@
|
||||
{% endblock %}
|
||||
|
||||
<!-- Tabs with outline -->
|
||||
{% if feature.tabs %}
|
||||
{% include "partials/tabs.html" %}
|
||||
{% endif %}
|
||||
{% block tabs %}
|
||||
{% if feature.tabs %}
|
||||
{% include "partials/tabs.html" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
<!-- Main area -->
|
||||
<main class="md-main" data-md-component="main">
|
||||
|
Loading…
Reference in New Issue
Block a user