_includes/header.html in jekyll-nagymaros-1.0.0 vs _includes/header.html in jekyll-nagymaros-1.1.0

- old
+ new

@@ -1,23 +1,18 @@ <header class="bg-gray-4"> <div class="container"> <nav class="navbar navbar-expand-sm"> - {% if site.home %} - {% assign home = site.home | relative_url %} - {% else %} - {% assign home = '/' | relative_url %} - {% endif %} - <a class="navbar-brand" href="{{ home }}">{{ site.title }}</a> + <a class="navbar-brand" href="{{ site.url }}">{{ site.title }}</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navigation"> <div class="navbar-nav"> {% assign links = site.pages | sort: 'navorder' %} {% for link in links %} {% if link.navorder %} {% assign current = link.name | split: '.' | first %} - {% assign href = link.url | relative_url %} + {% assign href = link.url | prepend: site.url %} {% if page.layout == current %} <a class="nav-link active" aria-current="page" href="{{ href }}">{{ link.title }}</a> {% else %} <a class="nav-link" href="{{ href }}">{{ link.title }}</a> {% endif %} \ No newline at end of file