Make logo configurable via mkdocs.yml

This commit is contained in:
squidfunk 2016-12-28 15:32:26 +01:00
parent 27808a4899
commit b3fcd629a3
4 changed files with 13 additions and 4 deletions

View File

@ -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">

View File

@ -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">

View File

@ -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>

View File

@ -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 %}