Skip to content

Commit 91f3161

Browse files
committed
Refactor site configuration and update banner and news pages for improved content structure
1 parent 4618a6c commit 91f3161

File tree

5 files changed

+55
-11
lines changed

5 files changed

+55
-11
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Spectral
33
44
description: The Jekyll version of the Spectral theme by HTML5 UP.
5-
baseurl: "/spectral-jekyll-theme" # the subpath of your site, e.g. /blog
5+
baseurl: "" # the subpath of your site, e.g. /blog
66
url: "" # the base hostname & protocol for your site
77

88
# Homepage tiles

_includes/banner.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<!-- Banner -->
2-
<section id="banner">
3-
<div class="inner">
4-
<h2>Spectral</h2>
5-
<p>Another fine responsive<br /> site template freebie<br /> crafted by <a href="http://html5up.net">HTML5 UP</a>.</p>
6-
<ul class="actions">
7-
<li><a href="#" class="button special">Activate</a></li>
8-
</ul>
9-
</div>
10-
<a href="#one" class="more scrolly">Learn More</a>
2+
3+
<section id="banner" style="background-image: url('{{ page.banner_background }}'); background-size: cover; background-position: center;">
4+
<div class="inner">
5+
<h2>{{ page.banner_heading }}</h2>
6+
<p>{{ page.banner_text | markdownify }}</p>
7+
<ul class="actions">
8+
<li><a href="{{ page.banner_button_link }}" class="button special">{{ page.banner_button_text }}</a></li>
9+
</ul>
10+
</div>
11+
<a href="#one" class="more scrolly">Learn More</a>
1112
</section>

dev-environment.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This manifest defines:
2+
# - A PersistentVolumeClaim for shared storage between containers and vscode (or another IDE icoul)
3+
# - A Pod running Jekyll, mounting the shared storage
4+
5+
# Jekyll Pod
6+
apiVersion: v1
7+
kind: Pod
8+
metadata:
9+
name: jekyll
10+
spec:
11+
volumes:
12+
- name: jekyll-shared
13+
hostPath:
14+
path: /home/jmk/Repositories/spectral-jekyll-theme
15+
type: Directory
16+
selinuxRelabel: "shared"
17+
containers:
18+
- name: jekyll
19+
image: ghcr.io/bretfisher/jekyll-serve:latest
20+
ports:
21+
- containerPort: 4000
22+
hostPort: 4000
23+
volumeMounts:
24+
- mountPath: /site
25+
name: jekyll-shared

index.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
---
22
layout: default
33
title: Home
4-
description: Another fine responsive<br />site template freebie<br />crafted by <a href="http://html5up.net">HTML5 UP</a>.
4+
banner_heading: OS²Product
5+
banner_background: https://images.pexels.com/photos/414171/pexels-photo-414171.jpeg
6+
banner_text: >
7+
An Open Source project code-stewarded
8+
by the OS² community
9+
10+
banner_button_text: Read More
11+
banner_button_link: "#one"
512
---

news.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: page
3+
title: News
4+
description: Os²Product latest news
5+
image: https://images.pexels.com/photos/12220470/pexels-photo-12220470.jpeg
6+
---
7+
8+
# Latest news
9+
10+
## Heading
11+
_with a subtitle_

0 commit comments

Comments
 (0)