File tree Expand file tree Collapse file tree 2 files changed +28
-9
lines changed Expand file tree Collapse file tree 2 files changed +28
-9
lines changed Original file line number Diff line number Diff line change 1
1
<!-- Banner -->
2
2
3
- < section id ="banner " style ="background-image: url('{{ page.banner_background }}'); background-size: cover; background-position: center; ">
3
+ < section id ="banner " class ="banner-section ">
4
+ < style >
5
+ .banner-section {
6
+ background-image : url ('{% if page.banner_background contains "://" %}{{ page.banner_background }}{% else %}{{ site.baseurl }}/{{ page.banner_background | remove_first: "/" }}{% endif %}' );
7
+ background-size : cover;
8
+ background-position : center;
9
+ }
10
+ </ style >
11
+ < div class ="inner ">
12
+ {% else %}
13
+ {% assign banner_bg_final = site.baseurl | append: "/" | append: banner_bg_url | remove_first: "/" %}
14
+ {% endif %}
15
+
16
+ < section id ="banner "
17
+ style ="background-image: url('{{ banner_bg_final }}'); background-size: cover; background-position: center; ">
4
18
< div class ="inner ">
5
19
< h2 > {{ page.banner_heading }}</ h2 >
6
20
< p > {{ page.banner_text | markdownify }}</ p >
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE HTML>
2
2
<!--
3
- Spectral by HTML5 UP
4
- html5up.net | @ajlkn
5
- Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
3
+ Spectral by HTML5 UP
4
+ html5up.net | @ajlkn
5
+ Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
6
6
-->
7
7
< html >
8
8
{% include head.html %}
12
12
13
13
<!-- Main -->
14
14
< article id ="main ">
15
- < header {% if page.image %} style ="background-image: url('{% if site.featured-image-source %}{{ page.image | prepend: site.featured-image-source | absolute_url }}{% else %}{{ "" | absolute_url }}/assets/images/{{ page.image }}{% endif %}');"{% endif %}>
15
+ {% if page.image %}
16
+ {% if site.featured-image-source %}
17
+ {% assign header_image_url = page.image | prepend: site.featured-image-source | absolute_url %}
18
+ {% else %}
19
+ {% assign header_image_url = "/assets/images/" | append: page.image | absolute_url %}
20
+ {% endif %}
21
+ {% endif %}
22
+
23
+ < header {% if page.image %} style ="background-image: url('{{ header_image_url }}'); "{% endif %} >
16
24
< h2 > {{ page.title }}</ h2 >
17
25
< p > {{ page.description }}</ p >
18
26
</ header >
27
+
19
28
< section class ="wrapper style5 ">
20
29
< div class ="inner ">
21
-
22
30
{{ content }}
23
-
24
31
</ div >
25
32
</ section >
26
33
</ article >
27
34
28
35
{% include footer.html %}
29
-
30
36
</ body >
31
-
32
37
</ html >
You can’t perform that action at this time.
0 commit comments