datat.fi/_includes/masthead.html

24 lines
723 B
HTML
Raw Permalink Normal View History

2021-07-06 03:59:07 +03:00
{% assign site_logo = site.logo | relative_url %}
2017-03-07 23:12:17 +02:00
<header id="masthead">
<div class="inner">
<div class="title-area">
{% if page.url == '/' %}
<h1 class="site-title">
<a href="{{ '/' | relative_url }}">
{% if site.logo %}<img src="{{ site_logo }}" alt="" class="site-logo">{% endif %}
<span>{{ site.title | escape }}</span>
2017-03-07 23:12:17 +02:00
</a>
</h1>
{% else %}
<p class="site-title">
<a href="{{ '/' | relative_url }}">
{% if site.logo %}<img src="{{ site_logo }}" alt="" class="site-logo">{% endif %}
<span>{{ site.title | escape }}</span>
2017-03-07 23:12:17 +02:00
</a>
</p>
{% endif %}
</div>
</div>
</header>