Skip to content
Snippets Groups Projects
Commit e472e2d0 authored by Roberto Jimenez Sanchez's avatar Roberto Jimenez Sanchez Committed by Martin Donath
Browse files

Generate Edit button only if page.edit_url

parent 0f9a76f4
No related branches found
No related tags found
No related merge requests found
......@@ -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">&#xE3C9;</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">&#xE3C9;<!-- edit --></a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment