mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Make logo configurable via mkdocs.yml
This commit is contained in:
parent
27808a4899
commit
b3fcd629a3
@ -3,7 +3,11 @@
|
||||
<div class="md-flex">
|
||||
<div class="md-flex__cell md-flex__cell--shrink">
|
||||
<a href="{{ nav.homepage.url }}" title="{{ config.site_name }}" class="md-icon md-header-nav__icon md-header-nav__icon--home">
|
||||
layers
|
||||
{% if config.extra.logo %}
|
||||
<img src="{{ base_url }}/{{ config.extra.logo }}" width="24" height="24">
|
||||
{% else %}
|
||||
school
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
<div class="md-flex__cell md-flex__cell--shrink">
|
||||
|
@ -11,7 +11,7 @@
|
||||
<a href="{{ config.repo_url }}" title="Go to repository" class="md-source" data-md-source="{{ repo_type }}">
|
||||
{% if repo_type %}
|
||||
<svg class="md-source__icon">
|
||||
<use xlink:href="#{{ repo_type }}" x="12" y="12" width="24" height="24"></use>
|
||||
<use href="#{{ repo_type }}" x="12" y="12" width="24" height="24"></use>
|
||||
</svg>
|
||||
{% endif %}
|
||||
<div class="md-source__repository">
|
||||
|
@ -31,7 +31,12 @@
|
||||
<div class="md-flex__cell md-flex__cell--shrink">
|
||||
<a href="{{ nav.homepage.url }}" title="{{ config.site_name }}"
|
||||
class="md-icon md-header-nav__icon md-header-nav__icon--home">
|
||||
layers
|
||||
{% if config.extra.logo %}
|
||||
<img src="{{ base_url }}/{{ config.extra.logo }}"
|
||||
width="24" height="24" />
|
||||
{% else %}
|
||||
school
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
data-md-source="{{ repo_type }}">
|
||||
{% if repo_type %}
|
||||
<svg class="md-source__icon">
|
||||
<use xlink:href="#{{ repo_type }}" x="12" y="12"
|
||||
<use href="#{{ repo_type }}" x="12" y="12"
|
||||
width="24" height="24"></use>
|
||||
</svg>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user