Skip to content

Commit 7bbb321

Browse files
Lydia ScarfBryanQuigley
Lydia Scarf
authored andcommitted
Custom hero image
1 parent 5de5991 commit 7bbb321

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ title: JKAN
22
greeting: Welcome to JKAN
33
description: A lightweight, backend-free open data portal, powered by Jekyll.
44
logo: /img/jkan.png
5+
hero_image: /img/homepage-hero.jpg
56

67
# Site theme
78
jkan_theme: Default

img/homepage-hero.jpg

82.2 KB
Loading

index.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
layout: default
33
---
44

5-
<div class="p-5 mb-4 bg-light rounded-3">
6-
<div class="container-fluid py-5">
5+
<div class="container d-flex flex-row p-5 mb-4 bg-light rounded-3 justify-content-between">
6+
<div class="col-lg-6 justify-content-center">
77
<h1 class="display-5">{{ site.greeting }}</h1>
8-
<p class="col-md-8 fs-4">{{ site.description }}</p>
8+
<p class="col-md-8 fs-4 mb-4">{{ site.description }}</p>
99
<a href="{{ "/datasets" | relative_url }}" class="btn btn-primary btn-lg" role="button">Start browsing</a>
1010
</div>
11+
<img alt="Example homepage hero image" class="d-none d-md-block img-responsive rounded-circle" src="{{ site.baseurl }} {{ site.hero_image }}" style="max-height: 300px" />
1112
</div>
1213

1314
<h3>Browse by Category</h3>

0 commit comments

Comments
 (0)