_includes/header.1.html in hardpool-flat-2.2.0 vs _includes/header.1.html in hardpool-flat-3.0.0
- old
+ new
@@ -1,9 +1,14 @@
{% assign logo_path = site.main_logo %}
-<header class="style-1">
+{%- if layout.header.style -%}
+ {%- assign hdrStyle = layout.header.style -%}
+{%- else -%}
+ {%- assign hdrStyle = "style-1" -%}
+{%- endif -%}
+<header class="{{hdrStyle}}">
<nav class="navbar navbar-expand-lg navbar-light">
- <div class="container">
+ <div class="container-fluid">
<a class="navbar-brand" href="/">{{ site.name }}</a>
<div class="mobile-link d-md-none">
{%- if site.header.links -%}
{%- for link in site.header.links -%}
{%- if link.label -%}
@@ -57,10 +62,10 @@
</ul>
{%- if site.header.links -%}
{%- for link in site.header.links -%}
{%- if link.label -%}
<div class="mt-md-0 mt-3 nav-item d-none d-md-block">
- <a class="btn btn-primary btn-follow" target="_blank" href="{{ link.url | default: '#' }}"><span>Follow me</span><i class="{{ link.icon | default: 'fas fa-link' }} ml-2" aria-hidden="true"></i></a>
+ <a class="btn btn-primary btn-follow" target="_blank" href="{{ link.url | default: '#' }}"><span>{{link.label}}</span><i class="{{ link.icon | default: 'fas fa-link' }} ml-2" aria-hidden="true"></i></a>
</div>
{%- endif -%}
{%- endfor -%}
{%- endif -%}
</div>
\ No newline at end of file