mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Generate Edit button only if page.edit_url
This commit is contained in:
parent
0f9a76f452
commit
e472e2d0b1
@ -129,7 +129,7 @@
|
|||||||
<div class="md-content">
|
<div class="md-content">
|
||||||
<article class="md-content__inner md-typeset">
|
<article class="md-content__inner md-typeset">
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if config.edit_uri %}
|
{% if page.edit_url %}
|
||||||
<a href="{{ page.edit_url }}" title="{{ lang.t('edit.link.title') }}" class="md-icon md-content__icon"></a>
|
<a href="{{ page.edit_url }}" title="{{ lang.t('edit.link.title') }}" class="md-icon md-content__icon"></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not "\x3ch1" in page.content %}
|
{% if not "\x3ch1" in page.content %}
|
||||||
|
@ -242,7 +242,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<!-- Edit button, if URL was defined -->
|
<!-- Edit button, if URL was defined -->
|
||||||
{% if config.edit_uri %}
|
{% if page.edit_url %}
|
||||||
<a href="{{ page.edit_url }}"
|
<a href="{{ page.edit_url }}"
|
||||||
title="{{ lang.t('edit.link.title') }}"
|
title="{{ lang.t('edit.link.title') }}"
|
||||||
class="md-icon md-content__icon"><!-- edit --></a>
|
class="md-icon md-content__icon"><!-- edit --></a>
|
||||||
|
Loading…
Reference in New Issue
Block a user