[gtk-web/new-website: 77/191] changed navbar
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-web/new-website: 77/191] changed navbar
- Date: Thu, 21 Nov 2019 12:24:56 +0000 (UTC)
commit b273d3588a97ae777bbd553ebf4d9e9a65e6920d
Author: ravgeetdhillon <ravgeetdhillon gmail com>
Date: Sun Jul 7 17:13:27 2019 +0530
changed navbar
_includes/header.html | 9 +++++++++
index.html | 2 --
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/_includes/header.html b/_includes/header.html
index e98e66b..715bbd7 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -26,7 +26,12 @@
</head>
<body>
+ {% if page.navbar_dark %}
+ <header class="navbar small bg-dark">
+ {% else %}
<header class="navbar small">
+ {% endif %}
+
<nav class="container navbar-expand-md px-0 px-md-3">
<a href="/" class="navbar-brand"><img src="{{ '/assets/img/gtk-logo.png' | prepend:
site.url }}" width="40" height="40" /><strong>GTK</strong></a>
<a class="btn navbar-toggler border-0 p-0" role="button" data-toggle="collapse"
data-target="#navbarSupportedContent">
@@ -39,7 +44,11 @@
{% assign page_split = page.url | split: '/' %}
{% assign page_type = page_split[1] | capitalize %}
{% if link.header %}
+ {% if page.navbar_dark %}
+ <li class="nav-item"><a href="{{ link.href }}"
class="nav-link text-light float-right">{{ link.name }}</a></li>
+ {% else %}
<li class="nav-item"><a href="{{ link.href }}"
class="nav-link text-dark float-right">{{ link.name }}</a></li>
+ {% endif %}
{% endif %}
{% endfor %}
</ul>
diff --git a/index.html b/index.html
index a9c1ef1..ecb6c13 100644
--- a/index.html
+++ b/index.html
@@ -33,8 +33,6 @@ development_section:
- heading: Looking for Help?
description: |-
If you want to ask questions about GTK, whether it's for developing applications with GTK or
contributing to GTK itself, you can use the GNOME [Discourse](https://discourse.gnome.org) instance, under
the [Platform/Core](https://discourse.gnome.org/c/platform/core) category. You can use tags like *gtk* or
*glib* to narrow down the topic of discussion to specific libraries. You can also ask questions on our
[IRC](irc://irc.gnome.org/%23gtk) channel.
-
-
---
{%- include header.html -%}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]