Localize edit button and hide on print

This commit is contained in:
squidfunk
2017-01-06 19:18:17 +01:00
parent f37bb76d18
commit 60624bfa82
6 changed files with 17 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
{% import "partials/i18n.html" as i18n %}
<!DOCTYPE html>
<html class="no-js">
<head>
@@ -36,7 +37,7 @@
{% include "partials/fonts.html" %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-9307c0da9f.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-d8a9749564.css">
{% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css">
{% endif %}
@@ -87,7 +88,7 @@
<div class="md-content">
<article class="md-content__inner md-typeset">
{% if config.edit_uri %}
<a href="{{ page.edit_url }}" title="Edit this page" class="md-icon md-content__edit">edit</a>
<a href="{{ page.edit_url }}" title="{{ i18n.t('edit.link.title') }}" class="md-icon md-content__edit">edit</a>
{% endif %}
{% block content %}
{% if not "\x3ch1 id=" in page.content %}
@@ -100,7 +101,7 @@
</div>
</main>
{% block footer %}
{% include "partials/footer.html" with context %}
{% include "partials/footer.html" %}
{% endblock %}
</div>
{% block scripts %}