Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add color scheme support #189

Merged
merged 7 commits into from
Sep 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,4 @@ DEPENDENCIES
github-pages

BUNDLED WITH
2.0.1
2.1.4
103 changes: 66 additions & 37 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,68 @@
<header class="navbar">
<div class="container">
<nav class="navbar">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#menu" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<img src="/images/icons/icon-menu.svg" alt="Toggle navigation" class="navbar-top-align">
</button>
<a href="/" class="navbar-brand">
<img src="/images/[email protected]" id="navbar-logo" alt="Neovim">
</a>
</div>
<div class="collapse navbar-collapse navbar-top-align" id="menu">
<ul class="nav navbar-nav navbar-right">
{% for nav in site.data.nav %}
{% if include.active == nav.title %}
<li class="current">
{% else %}
<li>
{% endif %}
<a {% if nav.sections != null %}href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"{% else %}href="{{ nav.url }}"{% endif %}>{{ nav.title }}</a>
{% if nav.sections != null %}
<ul class="dropdown-menu">
{% for section in nav.sections %}
<li>
<a href="{{ section.url }}">{{ section.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</div>
</nav>
</div>
<div class="container">
<nav class="navbar">
<div class="container-fluid">
<div class="navbar-header">
<div>
<a href="/" class="navbar-brand">
<img src="/images/[email protected]" id="navbar-logo" alt="Neovim" />
</a>
</div>
<div>
<button
type="button"
class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#menu"
aria-expanded="false"
>
<span class="sr-only">Toggle navigation</span>
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="12"
fill="currentColor"
stroke="currentColor"
>
<path d="M0 0h18v2H0zM0 5h18v2H0zM0 10h18v2H0z" />
</svg>
</button>
</div>
</div>
<div class="collapse navbar-collapse" id="menu">
<ul class="nav navbar-nav navbar-right">
{% for nav in site.data.nav %} {% if include.active == nav.title %}
<li class="current">
{% else %}
</li>

<li>
{% endif %} {% if nav.sections != null %}
<a
href="#"
class="dropdown-toggle"
data-toggle="dropdown"
role="button"
aria-haspopup="true"
aria-expanded="false"
>{{ nav.title }}</a
>
{% else %}
<a href="{{ nav.url }}">{{ nav.title }}</a>
{% endif %} {% if nav.sections != null %}
<ul class="dropdown-menu">
{% for section in nav.sections %}
<li>
<a href="{{ section.url }}">{{ section.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</div>
</nav>
</div>
</header>
6 changes: 2 additions & 4 deletions _layouts/newsletter.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
{% include nav.html active='News' %}

<section class="front-section">
<div class="container">
<div class="newsletter col-wide">

<div class="container newsletter">
<div class="col-wide">
<h1>{{ page.title }}</h1>

<div style="margin-top: 0.5em; margin-bottom: 0.5em;">
<i>{{ page.date | date: "%B %Y" }}</i>
</div>

{{ content }}

</div>

{% include news_sidebar.html %}
Expand Down
Loading