mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 15:40:15 +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 }}">
|
||||
{% 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 -->
|
||||
{% for path in config["extra_css"] %}
|
||||
<link rel="stylesheet" type="text/css" href="{{ path | url }}" />
|
||||
@ -238,7 +244,7 @@
|
||||
{% endblock %}
|
||||
|
||||
<!-- Container, necessary for web-application context -->
|
||||
<div class="md-container">
|
||||
<div class="md-container" data-md-component="container">
|
||||
|
||||
<!-- Hero teaser -->
|
||||
{% block hero %}
|
||||
@ -254,7 +260,7 @@
|
||||
|
||||
<!-- Main container -->
|
||||
<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 -->
|
||||
{% block site_nav %}
|
||||
|
@ -23,8 +23,6 @@
|
||||
<!-- Social links in footer -->
|
||||
{% if config.extra.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 %}
|
||||
<a href="{{ social.link }}" class="md-footer-social__link
|
||||
fa fa-{{ social.type }}"></a>
|
||||
|
Loading…
Reference in New Issue
Block a user