{% if logo %}
{% if not theme_logo_link %}
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
  <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
</a>
{% elif theme_logo_link[:4] == 'http' %}
<a class="navbar-brand" href="{{ theme_logo_link }}">
  <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
</a>
{% else %}
<a class="navbar-brand" href="{{ pathto(theme_logo_link) }}">
  {% if not theme_logo_text %}
    <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
  {% else %}
    <span><img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo"><span class="title"> {{ theme_logo_text }}</span></span>
  {% endif %}
</a>
{% endif %}
{% else %}
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
<p class="title">{{ project }}</p>
</a>
{% endif %}
{% if logo %}
{% if not theme_logo_link %}
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
  <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
</a>
{% elif theme_logo_link[:4] == 'http' %}
<a class="navbar-brand" href="{{ theme_logo_link }}">
  <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
</a>
{% else %}
<a class="navbar-brand" href="{{ pathto(theme_logo_link) }}" style="padding-top: 15px">
  {% if not theme_logo_text %}
    <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="logo">
  {% else %}
    <span><img src="{{ pathto('_static/' + logo, 1) }}" class="logo" style="width: auto; height: 30px; padding-bottom: 4px;" alt="logo"><span class="title"> {{ theme_logo_text }}</span></span>
  {% endif %}
</a>
{% endif %}
{% else %}
<a class="navbar-brand" href="{{ pathto(master_doc) }}">
<p class="title">{{ project }}</p>
</a>
{% endif %}
Align text with logo in nav-bar
Align text with logo in nav-bar
