File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 436
436
"markdownDescription" : " https://squidfunk.github.io/mkdocs-material/setup/changing-the-logo-and-icons/" ,
437
437
"type" : " object" ,
438
438
"properties" : {
439
+ "edit" : {
440
+ "$ref" : " #/definitions/icon"
441
+ },
439
442
"logo" : {
440
443
"$ref" : " #/definitions/icon"
441
444
},
550
553
},
551
554
"additionalProperties" : false ,
552
555
"defaultSnippets" : [
556
+ {
557
+ "label" : " edit" ,
558
+ "body" : " edit: ${1:material/pencil}"
559
+ },
553
560
{
554
561
"label" : " logo" ,
555
562
"body" : " logo: ${1:material/library}"
Original file line number Diff line number Diff line change 3
3
-#}
4
4
{% if page.edit_url %}
5
5
< a href ="{{ page.edit_url }} " title ="{{ lang.t('edit.link.title') }} " class ="md-content__button md-icon ">
6
- {% include ".icons/material/pencil.svg" %}
6
+ {% set icon = config.theme.icon.edit or "material/pencil" %}
7
+ {% include ".icons/" ~ icon ~ ".svg" %}
7
8
</ a >
8
9
{% endif %}
9
10
{% if "tags" in config.plugins %}
Original file line number Diff line number Diff line change 27
27
title ="{{ lang.t('edit.link.title') }} "
28
28
class ="md-content__button md-icon "
29
29
>
30
- {% include ".icons/material/pencil.svg" %}
30
+ {% set icon = config.theme.icon.edit or "material/pencil" %}
31
+ {% include ".icons/" ~ icon ~ ".svg" %}
31
32
</ a >
32
33
{% endif %}
33
34
You can’t perform that action at this time.
0 commit comments