mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 09:20:52 +01:00
Added support for changing edit icon
This commit is contained in:
parent
91361538ed
commit
909591e0a8
@ -436,6 +436,9 @@
|
|||||||
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/",
|
"markdownDescription": "https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"edit": {
|
||||||
|
"$ref": "#/definitions/icon"
|
||||||
|
},
|
||||||
"logo": {
|
"logo": {
|
||||||
"$ref": "#/definitions/icon"
|
"$ref": "#/definitions/icon"
|
||||||
},
|
},
|
||||||
@ -550,6 +553,10 @@
|
|||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"defaultSnippets": [
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "edit",
|
||||||
|
"body": "edit: ${1:material/pencil}"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"label": "logo",
|
"label": "logo",
|
||||||
"body": "logo: ${1:material/library}"
|
"body": "logo: ${1:material/library}"
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
-#}
|
-#}
|
||||||
{% if page.edit_url %}
|
{% if page.edit_url %}
|
||||||
<a href="{{ page.edit_url }}" title="{{ lang.t('edit.link.title') }}" class="md-content__button md-icon">
|
<a href="{{ page.edit_url }}" title="{{ lang.t('edit.link.title') }}" class="md-content__button md-icon">
|
||||||
{% include ".icons/material/pencil.svg" %}
|
{% set icon = config.theme.icon.edit or "material/pencil" %}
|
||||||
|
{% include ".icons/" ~ icon ~ ".svg" %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if "tags" in config.plugins %}
|
{% if "tags" in config.plugins %}
|
||||||
|
@ -27,7 +27,8 @@
|
|||||||
title="{{ lang.t('edit.link.title') }}"
|
title="{{ lang.t('edit.link.title') }}"
|
||||||
class="md-content__button md-icon"
|
class="md-content__button md-icon"
|
||||||
>
|
>
|
||||||
{% include ".icons/material/pencil.svg" %}
|
{% set icon = config.theme.icon.edit or "material/pencil" %}
|
||||||
|
{% include ".icons/" ~ icon ~ ".svg" %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user