mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Move button into content block
This commit is contained in:
parent
a911dd31b3
commit
12e12135c1
@ -108,10 +108,10 @@
|
||||
{% endblock %}
|
||||
<div class="md-content">
|
||||
<article class="md-content__inner md-typeset">
|
||||
{% if config.edit_uri %}
|
||||
<a href="{{ page.edit_url }}" title="{{ lang.t('edit.link.title') }}" class="md-icon md-content__icon">edit</a>
|
||||
{% endif %}
|
||||
{% block content %}
|
||||
{% if config.edit_uri %}
|
||||
<a href="{{ page.edit_url }}" title="{{ lang.t('edit.link.title') }}" class="md-icon md-content__icon">edit</a>
|
||||
{% endif %}
|
||||
{% if page.meta.source %}
|
||||
<a href="{{ page.edit_url }}" title="{{ lang.t('source.link.title') }}" class="md-icon md-content__icon">folder_open</a>
|
||||
{% endif %}
|
||||
|
@ -27,7 +27,7 @@ site_url: http://squidfunk.github.io/mkdocs-material/
|
||||
# Repository
|
||||
repo_name: squidfunk/mkdocs-material
|
||||
repo_url: https://github.com/squidfunk/mkdocs-material
|
||||
edit_uri: tree/master/docs
|
||||
#edit_uri: tree/master/docs
|
||||
|
||||
# Copyright
|
||||
copyright: 'Copyright © 2016 - 2017 Martin Donath'
|
||||
@ -37,8 +37,8 @@ theme_dir: material
|
||||
|
||||
# Options
|
||||
extra:
|
||||
feature:
|
||||
tabs: true
|
||||
#feature:
|
||||
# tabs: true
|
||||
palette:
|
||||
primary: indigo
|
||||
accent: indigo
|
||||
|
@ -210,16 +210,16 @@
|
||||
<div class="md-content">
|
||||
<article class="md-content__inner md-typeset">
|
||||
|
||||
<!-- Edit button, if URL was defined -->
|
||||
{% if config.edit_uri %}
|
||||
<a href="{{ page.edit_url }}"
|
||||
title="{{ lang.t('edit.link.title') }}"
|
||||
class="md-icon md-content__icon">edit</a>
|
||||
{% endif %}
|
||||
|
||||
<!-- Block: content -->
|
||||
{% block content %}
|
||||
|
||||
<!-- Edit button, if URL was defined -->
|
||||
{% if config.edit_uri %}
|
||||
<a href="{{ page.edit_url }}"
|
||||
title="{{ lang.t('edit.link.title') }}"
|
||||
class="md-icon md-content__icon">edit</a>
|
||||
{% endif %}
|
||||
|
||||
<!-- Linked source files -->
|
||||
{% if page.meta.source %}
|
||||
<a href="{{ page.edit_url }}"
|
||||
|
Loading…
Reference in New Issue
Block a user