mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 07:30:12 +01: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">
|
||||
<article class="md-content__inner md-typeset">
|
||||
{% 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>
|
||||
{% endif %}
|
||||
{% if not "\x3ch1" in page.content %}
|
||||
|
@ -242,7 +242,7 @@
|
||||
{% block content %}
|
||||
|
||||
<!-- Edit button, if URL was defined -->
|
||||
{% 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"><!-- edit --></a>
|
||||
|
Loading…
Reference in New Issue
Block a user