diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-08 10:42:47 +0000 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-05-08 10:42:47 +0000 |
commit | 8e935c24b1446528a1a3fa4f9995346bf19921dd (patch) | |
tree | 887dd84fc3ef2feb545350872517ac37b55d742c /_includes | |
parent | don't hard-code branch name (diff) | |
download | jekyll-theme-8e935c24b1446528a1a3fa4f9995346bf19921dd.tar.gz jekyll-theme-8e935c24b1446528a1a3fa4f9995346bf19921dd.zip |
header: skip project name and/or navbar
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/common/header.html | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/_includes/common/header.html b/_includes/common/header.html index ce6e493..d95c0a0 100644 --- a/_includes/common/header.html +++ b/_includes/common/header.html @@ -5,7 +5,11 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>{{ page.title }} - {{ site.project.name }} - {{ site.personal_info.name }}</title> + {% if site.project.name %} + <title>{{ page.title }} - {{ site.project.name }} - {{ site.personal_info.name }}</title> + {% else %} + <title>{{ page.title }} - {{ site.personal_info.name }}</title> + {% endif %} {% include common/bootstrap_css.html %} @@ -23,8 +27,11 @@ </head> <body> <div class="top-level-footer-wrapper"> - <div class="footer-wrapper-collapse"> - {% include common/navbar.html %} - </div> + {% if site.hide_navbar or page.hide_navbar %} + {% else %} + <div class="footer-wrapper-collapse"> + {% include common/navbar.html %} + </div> + {% endif %} <div class="footer-wrapper-expand"> <div class="container"> |