_includes/header.1.html in hardpool-flat-2.0.0 vs _includes/header.1.html in hardpool-flat-2.1.0

- old
+ new

@@ -1,11 +1,20 @@ {% assign logo_path = site.main_logo %} <header class="style-1"> <nav class="navbar navbar-expand-lg navbar-light"> <div class="container"> <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 -%} + <a class="btn btn-primary btn-icon" target="_blank" href="{{ link.url | default: '#' }}"><i class="{{ link.icon | default: 'fas fa-link' }} ml-2" aria-hidden="true"></i></a> + {%- endif -%} + {%- endfor -%} + {%- endif -%} <a class="mobile-nav-handle d-md-none" href="javascript:header.toggle();"><i id="nav-handle-icon" class="fas fa-bars"></i></a> + </div> <ul id="navigation" class="nav nav-mobile ml-auto"> {%- for link in site.data.navigation.main -%} {%- if link.url contains '://' -%} {%- assign url = link.url -%} {%- else -%} @@ -44,8 +53,17 @@ </li> {% endfor %} {% endif %} {% endfor %} </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> + </div> + {%- endif -%} + {%- endfor -%} + {%- endif -%} </div> </nav> </header> \ No newline at end of file