summaryrefslogtreecommitdiff
path: root/_includes/header.html
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2021-10-03 00:35:46 -0500
committerKarl Hallsby <karl@hallsby.com>2021-10-03 02:16:55 -0500
commite2c06d2681e18946ab6c3e3e6075aed92a4d13be (patch)
treeb30dce94387f4717394277932f691519e0281c44 /_includes/header.html
parenta10ad0a99ba6e44a35253c3bcaff80c90e99348e (diff)
Change to al-folio theme
Theme at: https://github.com/alshedivat/al-folio
Diffstat (limited to '_includes/header.html')
-rw-r--r--_includes/header.html92
1 files changed, 92 insertions, 0 deletions
diff --git a/_includes/header.html b/_includes/header.html
new file mode 100644
index 0000000..31e1fd2
--- /dev/null
+++ b/_includes/header.html
@@ -0,0 +1,92 @@
+<header>
+
+ <!-- Nav Bar -->
+ <nav id="navbar" class="navbar navbar-light navbar-expand-sm {% if site.navbar_fixed %}fixed-top{% else %}sticky-top{% endif %}">
+ <div class="container">
+ {% if page.title != "about" %}
+ <a class="navbar-brand title font-weight-lighter" href="{{ site.baseurl | prepend: site.url }}/">
+ {% if site.title == "blank" %}<span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }} {{ site.last_name }}{% else %}{{ site.title }}{% endif %}
+ </a>
+ {% elsif site.enable_navbar_social %}
+ <!-- Social Icons -->
+ <div class="navbar-brand social">
+ {% include social.html %}
+ </div>
+ {% endif %}
+ <!-- Navbar Toggle -->
+ <button class="navbar-toggler collapsed ml-auto" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar top-bar"></span>
+ <span class="icon-bar middle-bar"></span>
+ <span class="icon-bar bottom-bar"></span>
+ </button>
+ <div class="collapse navbar-collapse text-right" id="navbarNav">
+ <ul class="navbar-nav ml-auto flex-nowrap">
+ <!-- About -->
+ <li class="nav-item {% if page.title == 'about' %}active{% endif %}">
+ <a class="nav-link" href="{{ '/' | relative_url }}">
+ about
+ {% if page.title == "about" %}
+ <span class="sr-only">(current)</span>
+ {% endif %}
+ </a>
+ </li>
+ {% if site.blog_name %}
+ <!-- Blog -->
+ <li class="nav-item {% if page.url contains 'blog' %}active{% endif %}">
+ <a class="nav-link" href="{{ '/blog/' | relative_url }}">
+ blog
+ {% if page.title == "blog" %}
+ <span class="sr-only">(current)</span>
+ {% endif %}
+ </a>
+ </li>
+ {% endif %}
+ <!-- Other pages -->
+ {% assign sorted_pages = site.pages | sort: "title" %}
+ {% for p in sorted_pages %}
+ {% if p.nav and p.autogen == nil %}
+ {% if p.dropdown %}
+ <li class="nav-item dropdown {% if page.title == p.title %}active{% endif %}">
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ {{ p.title }}
+ {% if page.title == p.title %}
+ <span class="sr-only">(current)</span>
+ {% endif %}
+ </a>
+ <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
+ {% for child in p.children %}
+ {% if child.title == 'divider' %}
+ <div class="dropdown-divider"></div>
+ {% else %}
+ <a class="dropdown-item" href="{{ child.permalink | relative_url }}">{{ child.title }}</a>
+ {% endif %}
+ {% endfor %}
+ </div>
+ </li>
+ {% else %}
+ <li class="nav-item {% if page.title == p.title %}active{% endif %}">
+ <a class="nav-link" href="{{ p.url | relative_url }}">
+ {{ p.title }}
+ {% if page.title == p.title %}
+ <span class="sr-only">(current)</span>
+ {% endif %}
+ </a>
+ </li>
+ {% endif %}
+ {% endif %}
+ {% endfor %}
+ {% if site.enable_darkmode %}
+ <div class = "toggle-container">
+ <a id = "light-toggle">
+ <i class="fas fa-moon"></i>
+ <i class="fas fa-sun"></i>
+ </a>
+ </div>
+ {% endif %}
+ </ul>
+ </div>
+ </div>
+ </nav>
+
+</header>