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 %}
|
{% endblock %}
|
||||||
<div class="md-content">
|
<div class="md-content">
|
||||||
<article class="md-content__inner md-typeset">
|
<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 %}
|
{% 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 %}
|
{% if page.meta.source %}
|
||||||
<a href="{{ page.edit_url }}" title="{{ lang.t('source.link.title') }}" class="md-icon md-content__icon">folder_open</a>
|
<a href="{{ page.edit_url }}" title="{{ lang.t('source.link.title') }}" class="md-icon md-content__icon">folder_open</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -27,7 +27,7 @@ site_url: http://squidfunk.github.io/mkdocs-material/
|
|||||||
# Repository
|
# Repository
|
||||||
repo_name: squidfunk/mkdocs-material
|
repo_name: squidfunk/mkdocs-material
|
||||||
repo_url: https://github.com/squidfunk/mkdocs-material
|
repo_url: https://github.com/squidfunk/mkdocs-material
|
||||||
edit_uri: tree/master/docs
|
#edit_uri: tree/master/docs
|
||||||
|
|
||||||
# Copyright
|
# Copyright
|
||||||
copyright: 'Copyright © 2016 - 2017 Martin Donath'
|
copyright: 'Copyright © 2016 - 2017 Martin Donath'
|
||||||
@ -37,8 +37,8 @@ theme_dir: material
|
|||||||
|
|
||||||
# Options
|
# Options
|
||||||
extra:
|
extra:
|
||||||
feature:
|
#feature:
|
||||||
tabs: true
|
# tabs: true
|
||||||
palette:
|
palette:
|
||||||
primary: indigo
|
primary: indigo
|
||||||
accent: indigo
|
accent: indigo
|
||||||
|
@ -210,16 +210,16 @@
|
|||||||
<div class="md-content">
|
<div class="md-content">
|
||||||
<article class="md-content__inner md-typeset">
|
<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 -->
|
||||||
{% 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 -->
|
<!-- Linked source files -->
|
||||||
{% if page.meta.source %}
|
{% if page.meta.source %}
|
||||||
<a href="{{ page.edit_url }}"
|
<a href="{{ page.edit_url }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user