mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 07:30:12 +01:00
Fixed issue where HTML elements in H1's cause footer layout to be broken (#1217)
* Add striptags to next/previous links to eascape invalid html tags * Add generated built files for escaped titles in footer
This commit is contained in:
parent
6668cab416
commit
a47f1efe6d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/application.30686662.css
Normal file
1
material/assets/stylesheets/application.30686662.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -56,9 +56,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/application.4031d38b.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/application.30686662.css' | url }}">
|
||||||
{% if palette.primary or palette.accent %}
|
{% if palette.primary or palette.accent %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/application-palette.224b79ff.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/application-palette.0ed588d8.css' | url }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if palette.primary %}
|
{% if palette.primary %}
|
||||||
{% import "partials/palette.html" as map %}
|
{% import "partials/palette.html" as map %}
|
||||||
@ -193,7 +193,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/application.ffb616e8.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/application.e0c39f9f.js' | url }}"></script>
|
||||||
{% if lang.t("search.language") != "en" %}
|
{% if lang.t("search.language") != "en" %}
|
||||||
{% set languages = lang.t("search.language").split(",") %}
|
{% set languages = lang.t("search.language").split(",") %}
|
||||||
{% if languages | length and languages[0] != "" %}
|
{% if languages | length and languages[0] != "" %}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<div class="md-footer-nav">
|
<div class="md-footer-nav">
|
||||||
<nav class="md-footer-nav__inner md-grid">
|
<nav class="md-footer-nav__inner md-grid">
|
||||||
{% if page.previous_page %}
|
{% if page.previous_page %}
|
||||||
<a href="{{ page.previous_page.url | url }}" title="{{ page.previous_page.title }}" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
|
<a href="{{ page.previous_page.url | url }}" title="{{ page.previous_page.title | striptags }}" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
<i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
|
<i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
|
||||||
</div>
|
</div>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.next_page %}
|
{% if page.next_page %}
|
||||||
<a href="{{ page.next_page.url | url }}" title="{{ page.next_page.title }}" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
|
<a href="{{ page.next_page.url | url }}" title="{{ page.next_page.title | striptags }}" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
|
||||||
<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">
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
<!-- Link to previous page -->
|
<!-- Link to previous page -->
|
||||||
{% if page.previous_page %}
|
{% if page.previous_page %}
|
||||||
<a href="{{ page.previous_page.url | url }}"
|
<a href="{{ page.previous_page.url | url }}"
|
||||||
title="{{ page.previous_page.title }}"
|
title="{{ page.previous_page.title | striptags }}"
|
||||||
class="md-flex md-footer-nav__link md-footer-nav__link--prev"
|
class="md-flex md-footer-nav__link md-footer-nav__link--prev"
|
||||||
rel="prev">
|
rel="prev">
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
@ -55,7 +55,7 @@
|
|||||||
<!-- Link to next page -->
|
<!-- Link to next page -->
|
||||||
{% if page.next_page %}
|
{% if page.next_page %}
|
||||||
<a href="{{ page.next_page.url | url }}"
|
<a href="{{ page.next_page.url | url }}"
|
||||||
title="{{ page.next_page.title }}"
|
title="{{ page.next_page.title | striptags }}"
|
||||||
class="md-flex md-footer-nav__link md-footer-nav__link--next"
|
class="md-flex md-footer-nav__link md-footer-nav__link--next"
|
||||||
rel="next">
|
rel="next">
|
||||||
<div class="md-flex__cell md-flex__cell--stretch
|
<div class="md-flex__cell md-flex__cell--stretch
|
||||||
|
Loading…
Reference in New Issue
Block a user