mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 09:20:52 +01:00
Optimized HTML structure
This commit is contained in:
parent
aeded5b844
commit
4fc4876fc8
@ -166,6 +166,12 @@
|
|||||||
<link rel="manifest" href="{{ config.extra.manifest | url }}">
|
<link rel="manifest" href="{{ config.extra.manifest | url }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<!-- FontAwesome for social links -->
|
||||||
|
{% if config.extra.social %}
|
||||||
|
<link rel="stylesheet" type="text/css"
|
||||||
|
href="{{ 'assets/fonts/font-awesome.css' | url }}" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!-- Custom stylesheets -->
|
<!-- Custom stylesheets -->
|
||||||
{% for path in config["extra_css"] %}
|
{% for path in config["extra_css"] %}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ path | url }}" />
|
<link rel="stylesheet" type="text/css" href="{{ path | url }}" />
|
||||||
@ -238,7 +244,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<!-- Container, necessary for web-application context -->
|
<!-- Container, necessary for web-application context -->
|
||||||
<div class="md-container">
|
<div class="md-container" data-md-component="container">
|
||||||
|
|
||||||
<!-- Hero teaser -->
|
<!-- Hero teaser -->
|
||||||
{% block hero %}
|
{% block hero %}
|
||||||
@ -254,7 +260,7 @@
|
|||||||
|
|
||||||
<!-- Main container -->
|
<!-- Main container -->
|
||||||
<main class="md-main" role="main">
|
<main class="md-main" role="main">
|
||||||
<div class="md-main__inner md-grid" data-md-component="container">
|
<div class="md-main__inner md-grid" data-md-component="main">
|
||||||
|
|
||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
{% block site_nav %}
|
{% block site_nav %}
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
<!-- Social links in footer -->
|
<!-- Social links in footer -->
|
||||||
{% if config.extra.social %}
|
{% if config.extra.social %}
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" type="text/css"
|
|
||||||
href="{{ 'assets/fonts/font-awesome.css' | url }}" />
|
|
||||||
{% for social in config.extra.social %}
|
{% for social in config.extra.social %}
|
||||||
<a href="{{ social.link }}" class="md-footer-social__link
|
<a href="{{ social.link }}" class="md-footer-social__link
|
||||||
fa fa-{{ social.type }}"></a>
|
fa fa-{{ social.type }}"></a>
|
||||||
|
Loading…
Reference in New Issue
Block a user