IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Commit d327f74d authored by Amy Rose's avatar Amy Rose
Browse files

use simple header style when no banner image is given

parent e4b22034
Pipeline #832 passed with stage
in 3 minutes and 20 seconds
......@@ -50,7 +50,13 @@ layout: default
<!-- Banner & Title -->
<div
id="banner"
style="background-image: url({{ page.banner | default: layout.banner | relative_url }})" >
{% assign banner = page.banner | default: layout.banner %}
{% if banner %}
style="background-image: url({{ banner }});"
{% else %}
class="no-image"
{% endif %}
>
{% assign newline = "%0A" | url_decode %}
<h1> {{ title | replace: newline, "<br/>" }} </h1>
</div>
......
---
layout: base
title: "{{ page.name }}"
banner: /assets/images/banners/our-work.webp
load_scripts:
- /assets/js/project.js
......
......@@ -24,3 +24,15 @@
}
margin-bottom: 50px;
}
#banner.no-image {
height: inherit;
min-height: inherit;
margin-bottom: inherit;
h1 {
color: black;
background-color: inherit;
margin-bottom: inherit;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment