Favicon icon and favicon image are included only if is defined
This commit is contained in:
parent
203f5a2b4f
commit
1b6e663118
2 changed files with 4 additions and 2 deletions
|
|
@ -29,5 +29,7 @@
|
|||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon }}">
|
||||
{{% if site.favicon %}}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon }}">
|
||||
{{% endif %}}
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
{% else %}
|
||||
<a class="navbar-brand page-scroll" href="/index.html#page-top">
|
||||
{% endif %}
|
||||
<div><img src="{{ site.black-favicon }}" alt=""> {{ site.title }}</div>
|
||||
<div>{{% if site.black-favicon %}}<img src="{{ site.black-favicon }}" alt=""> {{% endif %}}{{ site.title }}</div>
|
||||
</a>
|
||||
</div>
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue