Skip to content

Commit

Permalink
v0.0.19: turn header white, fix optional navs
Browse files Browse the repository at this point in the history
  • Loading branch information
vahidzee committed Apr 3, 2024
1 parent 63a4925 commit 7518361
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion webifier/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = 'v0.1.18'
__version__ = 'v0.1.19'
4 changes: 2 additions & 2 deletions webifier/jekyll/_includes/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if include.header or include.title or include.description or include.background %}
<header class="container-fluid bg-dark text-white shadow text-center align-items-center p-0"
<header class="container-fluid bg-white text-dark shadow text-center align-items-center p-0"
{% if include.header.background or include.background %}
style="
min-height: 5vh;
Expand All @@ -17,7 +17,7 @@
style="background-color:rgba(0, 0, 0, 0.5);"
class="w-100 p-3 m-auto text-center"
{% else %}
class="bg-dark p-3 m-auto text-center"
class="bg-white p-3 m-auto text-center"
{% endif %}
>
<h1 class=""> {{ include.header.title | default: include.title }}</h1>
Expand Down
2 changes: 1 addition & 1 deletion webifier/jekyll/_includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% else %}
{% assign links = include.nav.content | default: site.data.index.nav.content | default: site.data.index.nav %}
{% endif %}
{% if site.data.index.nav != false %}
{% if include.nav != null and include.nav != false %}
<nav class="px-2 navbar navbar-expand-lg navbar-light bg-light m-0 p-2 sticky-top shadow">
{% if site.data.index.nav.brand %}
{% include link.html link=site.data.index.nav.brand class="btn navbar-brand" %}
Expand Down
3 changes: 2 additions & 1 deletion webifier/jekyll/_layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% assign index = page.index | default: "index" %}
{% assign index = site.data[index] %}

<html>

<head>
Expand All @@ -11,7 +12,7 @@
<body class="bg-light">
<div class="app-content container-fluid">
{% include header.html header=index.header %}
{% include nav.html %}
{% include nav.html nav=index.nav %}

<div id="app-body"
class="app-body
Expand Down

0 comments on commit 7518361

Please sign in to comment.