Skip to content

Commit 65bbee1

Browse files
committed
feat: add landing page
1 parent e481d71 commit 65bbee1

File tree

6 files changed

+58
-2
lines changed

6 files changed

+58
-2
lines changed

assets/img/grad.png

36.1 KB
Loading

assets/img/logohq.webp

17.6 KB
Loading

assets/img/test.webp

54.7 KB
Loading

data/landing.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
hero:
2+
enable: true
3+
weight: 10
4+
template: hero
5+
6+
backgroundImage:
7+
path: "img"
8+
filename:
9+
desktop: "grad.png"
10+
mobile: "grad.png"
11+
12+
titleLogo:
13+
path: "img"
14+
filename: "logohq.webp"
15+
alt: "RIG Logo"
16+
height: 80px
17+
18+
title: "ORIGO 2025 Docs"
19+
subtitle: A quick reference and guide to all things technical for ORIGO 2025
20+
21+
image:
22+
path: "img" # path to image under configured assets directory. default 'images'
23+
filename: "test.webp" # filename of your hero image (including file extension)
24+
alt: "Header image" # Optional but recommended
25+
boxShadow: true # default 'false' (excludes .svg images)
26+
rounded: true # round the image corners? default 'false' (excludes .svg images)
27+
28+
ctaButton:
29+
icon: rocket_launch
30+
btnText: "Get Started"
31+
url: "/docs/"
32+
33+
featureGrid:
34+
enable: false
35+
36+
imageText:
37+
enable: false
38+
39+
imageCompare:
40+
enable: false

hugo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
baseURL = 'http://example.org/'
22
languageCode = 'en-us'
3-
title = 'My New Hugo Site'
3+
title = 'ORIGO 2025'
44

55
[module]
66
[[module.imports]]
@@ -14,7 +14,6 @@ title = 'My New Hugo Site'
1414
[params.docs]
1515
darkMode = true
1616

17-
1817
[markup.goldmark.renderer]
1918
unsafe = true
2019

scripts/convert_image.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import os
2+
from PIL import Image
3+
4+
# Supported image formats (you can extend this if needed)
5+
valid_extensions = [".jpg", ".jpeg", ".png", ".bmp", ".tiff"]
6+
7+
# Loop through files in current folder
8+
for filename in os.listdir("."):
9+
name, ext = os.path.splitext(filename)
10+
if ext.lower() in valid_extensions:
11+
try:
12+
img = Image.open(filename).convert("RGB") # convert to RGB for webp
13+
webp_name = f"{name}.webp"
14+
img.save(webp_name, "WEBP")
15+
print(f"Converted: {filename} -> {webp_name}")
16+
except Exception as e:
17+
print(f"Failed to convert {filename}: {e}")

0 commit comments

Comments
 (0)