You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wayang.apache.org by be...@apache.org on 2021/02/22 05:26:03 UTC
[incubator-wayang-website] 24/37: small correction header
This is an automated email from the ASF dual-hosted git repository.
bertty pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-wayang-website.git
commit 3521c584eac33916f299c5d5463f57fe19416b88
Author: Bertty Contreras-Rojas <be...@scalytics.io>
AuthorDate: Mon Feb 15 01:35:51 2021 -0300
small correction header
---
_includes/header.html | 75 +++++++++++++++++++++++++++++----------------------
1 file changed, 43 insertions(+), 32 deletions(-)
diff --git a/_includes/header.html b/_includes/header.html
index 199861e..8e091b7 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -10,43 +10,54 @@
{% endfor %}
<nav class="navbar navbar-expand-lg navbar-light bg-light sticky-top shadow-lg">
- <a class="navbar-brand" href="#">Navbar</a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
+ <div class="container d-flex justify-content-between w-100">
+ <div class="mr-auto p-2">
+ <a class="navbar-brand" href="{% link index.md %}">Navbar</a>
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+ </div>
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
- <div class="navbar-nav mr-auto" style="margin-left: 25%">
+ <div class="p-2">
+ <div class="collapse navbar-collapse" id="navbarSupportedContent">
+ <div class="navbar-nav">
- {% for entry in site.data.navigation %}
- {% if entry.url == current_page %}
- {% assign current = 'active' %}
- {% else %}
- {% assign current = '' %}
- {% endif %}
+ {% for entry in site.data.navigation %}
+ {% if entry.url == current_page %}
+ {% assign current = 'active' %}
+ {% else %}
+ {% assign current = '' %}
+ {% endif %}
- {% assign sublinks = entry.sublinks %}
- {% if sublinks %}
- <li class="nav-item dropdown {{current}}">
- <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
- {{ entry.title }}
- </a>
- <div class="dropdown-menu">
- {% for sublink in sublinks %}
+ {% assign sublinks = entry.sublinks %}
+ {% if sublinks %}
+ <li class="nav-item dropdown {{current}}">
+ <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
+ {{ entry.title }}
+ </a>
+ <div class="dropdown-menu">
+ {% for sublink in sublinks %}
<a class="dropdown-item" href="{{ sublink.url | absolute_url }}">
{{ sublink.title }}
</a>
- {% endfor %}
- </div>
- </li>
- {% else %}
- <li class="nav-item {{current}}">
- <a class="nav-link" href="{{ entry.url | absolute_url }}">
- {{ entry.title }}
- </a>
- </li>
- {% endif %}
- {% endfor %}
- </ul>
+ {% endfor %}
+ </div>
+ </li>
+ {% else %}
+ <li class="nav-item {{current}}">
+ <a class="nav-link" href="{{ entry.url | absolute_url }}">
+ {{ entry.title }}
+ </a>
+ </li>
+ {% endif %}
+ {% endfor %}
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
</div>
+
+
+
</nav>
\ No newline at end of file