Skip to content

Commit ca0830c

Browse files
(WIP) Setting up images in Hugo
1 parent 69ea009 commit ca0830c

File tree

6 files changed

+64
-0
lines changed

6 files changed

+64
-0
lines changed
366 KB
Loading
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
+++
2+
date = '2025-06-27'
3+
draft = true
4+
title = 'Agentic Workflow'
5+
tags = ["AI", "LLM", "Agent", "IBM", "Watsonx", "Granite", "Llama", "LangFlow", "Architecture"]
6+
+++
7+
8+
## 1. Overall Workflow
9+
{{< figure-wide src="agentic-workflow-27-june.png" alt="Agentic workflow diagram" >}}
10+
11+
12+
## TL;DR

hugo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,12 @@ enableInlineShortcodes = true
3636
url = "/team"
3737
weight = 4
3838

39+
[params.assets]
40+
customCSS = [
41+
"https://cdn.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css",
42+
"css/glightbox-custom.css"
43+
]
44+
customJS = [
45+
"https://cdn.jsdelivr.net/npm/glightbox/dist/js/glightbox.min.js",
46+
"js/init-glightbox.js"
47+
]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{{ $src := .Get "src" }}
2+
{{ $alt := .Get "alt" | default "" }}
3+
{{ $img := .Page.Resources.GetMatch $src }}
4+
5+
{{ if $img }}
6+
<div style="
7+
position: relative;
8+
left: 50%;
9+
transform: translateX(-50%);
10+
width: 70vw;
11+
max-width: 1800px;
12+
margin: 2rem 0;
13+
">
14+
<a href="{{ $img.RelPermalink }}" class="glightbox">
15+
<img src="{{ $img.RelPermalink }}"
16+
alt="{{ $alt }}"
17+
style="width: 100%; height: auto; display: block;">
18+
</a>
19+
</div>
20+
{{ else }}
21+
<p style="color: red;">Image not found: {{ $src }}</p>
22+
{{ end }}

static/css/glightbox-custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.glightbox-clean .gcontainer {
2+
background-color: #fff !important;
3+
}
4+
5+
.glightbox-clean.glightbox-dark .gcontainer {
6+
background-color: #000 !important;
7+
}

static/js/init-glightbox.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
document.addEventListener("DOMContentLoaded", function () {
2+
const isDark = document.body.classList.contains("dark");
3+
4+
const lightbox = GLightbox({
5+
onOpen: () => {
6+
setTimeout(() => {
7+
const gcontainer = document.querySelector('.glightbox-clean .gcontainer');
8+
if (gcontainer) {
9+
gcontainer.style.backgroundColor = isDark ? '#000' : '#fff';
10+
}
11+
}, 50);
12+
}
13+
});
14+
});

0 commit comments

Comments
 (0)