Skip to content

Commit b0a607c

Browse files
Merge pull request #1 from codefrydev/LadyBug
Lady Bug
2 parents e5b4551 + 89ee618 commit b0a607c

19 files changed

Lines changed: 1456 additions & 65 deletions

File tree

.github/workflows/hugo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
build:
3333
runs-on: ubuntu-latest
3434
env:
35-
HUGO_VERSION: 0.126.0
35+
HUGO_VERSION: 0.160.1
3636
steps:
3737
- name: Install Hugo CLI
3838
run: |

data/history.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
history:
2+
- date: "25 April 2026"
3+
title: "Homepage ladybug easter egg"
4+
description: "Interactive ladybug on the home page: wanders, gets scared, takes flight, can get angry; cursor-eat moment with particles; sometimes perches on the header logo, nibbles the main title when hungry, and visits random tool tiles with playful messages and confetti text—namespaced styles and scripts so it does not clash with the rest of the site."
5+
link: "/"
6+
accent_color: "#dc2626"
27
- date: "24 April 2026"
38
title: "JS LIDE"
49
description: "In-browser JavaScript workspace—file explorer, editor, and console output for quick experiments."

layouts/about/about.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -340,25 +340,25 @@ <h1>About CodeFryDev</h1>
340340
</div>
341341

342342
{{- $totalTools := 0 -}}
343-
{{- range .Site.Data.home.categories -}}
343+
{{- range hugo.Data.home.categories -}}
344344
{{- $totalTools = add $totalTools (len .items) -}}
345345
{{- end -}}
346346
{{- $aiCount := 0 -}}
347-
{{- if .Site.Data.ai -}}
348-
{{- if .Site.Data.ai.data -}}
349-
{{- $aiCount = len .Site.Data.ai.data -}}
347+
{{- if hugo.Data.ai -}}
348+
{{- if hugo.Data.ai.data -}}
349+
{{- $aiCount = len hugo.Data.ai.data -}}
350350
{{- end -}}
351351
{{- end -}}
352352
{{- $gamesCount := 0 -}}
353-
{{- if .Site.Data.games -}}
354-
{{- if .Site.Data.games.data -}}
355-
{{- $gamesCount = len .Site.Data.games.data -}}
353+
{{- if hugo.Data.games -}}
354+
{{- if hugo.Data.games.data -}}
355+
{{- $gamesCount = len hugo.Data.games.data -}}
356356
{{- end -}}
357357
{{- end -}}
358358
{{- $designCount := 0 -}}
359-
{{- if .Site.Data.designlab -}}
360-
{{- if .Site.Data.designlab.data -}}
361-
{{- $designCount = len .Site.Data.designlab.data -}}
359+
{{- if hugo.Data.designlab -}}
360+
{{- if hugo.Data.designlab.data -}}
361+
{{- $designCount = len hugo.Data.designlab.data -}}
362362
{{- end -}}
363363
{{- end -}}
364364

@@ -410,7 +410,7 @@ <h3 class="feature-title">Creative Resources</h3>
410410
<div class="about-cards-section">
411411
<h2 class="section-title">Explore & Connect</h2>
412412
<div class="cards-grid">
413-
{{ range .Site.Data.about.cards }}
413+
{{ range hugo.Data.about.cards }}
414414
{{- $accentColor := .accent_color | default "667eea" -}}
415415
{{- if not (hasPrefix $accentColor "#") -}}
416416
{{- $accentColor = printf "#%s" $accentColor -}}

layouts/ai/ai.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<section class="category-section">
2929
<h2 class="category-title">AI Tools</h2>
3030
<div class="button-grid">
31-
{{ range .Site.Data.ai.data }}
31+
{{ range hugo.Data.ai.data }}
3232
{{- $isExternal := or (hasPrefix .url "http://") (hasPrefix .url "https://") -}}
3333
<a href="{{ .url }}"
3434
class="neumorphic-button hapticButton"

layouts/designlab/designlab.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<section class="category-section">
2929
<h2 class="category-title">Design Lab</h2>
3030
<div class="button-grid">
31-
{{ range .Site.Data.designlab.data }}
31+
{{ range hugo.Data.designlab.data }}
3232
{{- $isExternal := or (hasPrefix .url "http://") (hasPrefix .url "https://") -}}
3333
<a href="{{ .url }}"
3434
class="neumorphic-button hapticButton"

layouts/games/games.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<section class="category-section">
2929
<h2 class="category-title">Games</h2>
3030
<div class="button-grid">
31-
{{ range .Site.Data.games.data }}
31+
{{ range hugo.Data.games.data }}
3232
{{- $isExternal := or (hasPrefix .url "http://") (hasPrefix .url "https://") -}}
3333
<a href="{{ .url }}"
3434
class="neumorphic-button hapticButton"

layouts/history/history.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</section>
2020
{{- end }}
2121
<ul class="history-timeline" role="list">
22-
{{ range .Site.Data.history.history }}
22+
{{ range hugo.Data.history.history }}
2323
<li style="--accent-color:{{ .accent_color }}" role="listitem">
2424
<a href="{{ .link }}" aria-label="History item: {{ .title }}" class="history-item-link">
2525
<div class="date">{{ .date }}</div>

layouts/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
{{ warnf "The CSS file 'css/home.css' was not found." }}
1111
{{ end }}
1212
<link rel="stylesheet" href="/css/internal.css">
13+
<link rel="stylesheet" href="/css/ladybug.css">
1314
</head>
1415
<body>
1516
{{ partial "skip-link.html" . }}
1617
{{ partial "page-header.html" . }}
1718

1819
<main id="main-content" role="main">
1920
{{ partial "search.html" (dict "containerClass" "search-container" "placeholder" "Search for tools, games, AI apps, design resources..." "autofocus" false "Site" .Site "Scratch" .Scratch) }}
20-
{{ range .Site.Data.home.categories }}
21+
{{ range hugo.Data.home.categories }}
2122
<section class="category-section">
2223
<h2 class="category-title">{{ .name }}</h2>
2324
<div class="button-grid">
@@ -53,5 +54,7 @@ <h2 class="category-title">{{ .name }}</h2>
5354
<script src="/js/search.js"></script>
5455
<script src="js/feedback.js" ></script>
5556
<script src="/js/theme.js"></script>
57+
{{ partial "ladybug.html" . }}
58+
<script src="/js/ladybug.js" defer></script>
5659
</body>
5760
</html>

layouts/partials/enhanced-jsonld.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"foundingDate": "2023",
3131
"founder": {
3232
"@type": "Person",
33-
"name": "{{ .Site.Author.name }}"
33+
"name": "{{ .Site.Params.author | default .Site.Title | default "CodeFryDev" }}"
3434
},
3535
"sameAs": [
3636
"https://github.com/codefrydev",
@@ -95,10 +95,10 @@
9595
{{- /* ============================================ */ -}}
9696
{{- /* FAQ Schema */ -}}
9797
{{- /* ============================================ */ -}}
98-
{{- if .Site.Data.faq -}}
99-
{{- if .Site.Data.faq.faqs -}}
98+
{{- if hugo.Data.faq -}}
99+
{{- if hugo.Data.faq.faqs -}}
100100
{{- $faqItems := slice -}}
101-
{{- range .Site.Data.faq.faqs -}}
101+
{{- range hugo.Data.faq.faqs -}}
102102
{{- $faqItems = $faqItems | append (dict "@type" "Question" "name" .question "acceptedAnswer" (dict "@type" "Answer" "text" .answer)) -}}
103103
{{- end -}}
104104
{{- if gt (len $faqItems) 0 -}}
@@ -119,7 +119,7 @@
119119
{{- $allProducts := slice -}}
120120

121121
{{- /* Products from home.yaml */ -}}
122-
{{- range .Site.Data.home.categories -}}
122+
{{- range hugo.Data.home.categories -}}
123123
{{- $catName := .name -}}
124124
{{- range .items -}}
125125
{{- if .url -}}
@@ -155,9 +155,9 @@
155155
{{- end -}}
156156

157157
{{- /* AI Tools from ai.yaml */ -}}
158-
{{- if .Site.Data.ai -}}
159-
{{- if .Site.Data.ai.data -}}
160-
{{- range .Site.Data.ai.data -}}
158+
{{- if hugo.Data.ai -}}
159+
{{- if hugo.Data.ai.data -}}
160+
{{- range hugo.Data.ai.data -}}
161161
{{- if .url -}}
162162
{{- $appUrl := .url -}}
163163
{{- if hasPrefix $appUrl "/" -}}
@@ -185,9 +185,9 @@
185185
{{- end -}}
186186

187187
{{- /* Games from games.yaml */ -}}
188-
{{- if .Site.Data.games -}}
189-
{{- if .Site.Data.games.data -}}
190-
{{- range .Site.Data.games.data -}}
188+
{{- if hugo.Data.games -}}
189+
{{- if hugo.Data.games.data -}}
190+
{{- range hugo.Data.games.data -}}
191191
{{- if .url -}}
192192
{{- $appUrl := .url -}}
193193
{{- if hasPrefix $appUrl "/" -}}
@@ -215,9 +215,9 @@
215215
{{- end -}}
216216

217217
{{- /* Design Tools from designlab.yaml */ -}}
218-
{{- if .Site.Data.designlab -}}
219-
{{- if .Site.Data.designlab.data -}}
220-
{{- range .Site.Data.designlab.data -}}
218+
{{- if hugo.Data.designlab -}}
219+
{{- if hugo.Data.designlab.data -}}
220+
{{- range hugo.Data.designlab.data -}}
221221
{{- if .url -}}
222222
{{- $appUrl := .url -}}
223223
{{- if hasPrefix $appUrl "/" -}}
@@ -260,35 +260,35 @@
260260
{{- /* Home ItemList */ -}}
261261
{{- if .IsHome -}}
262262
{{- $homeLists := slice -}}
263-
{{- range .Site.Data.home.categories -}}
263+
{{- range hugo.Data.home.categories -}}
264264
{{- $catName := .name -}}
265265
{{- $items := slice -}}
266266
{{- range $idx, $it := .items -}}
267267
{{- $items = $items | append (dict "@type" "ListItem" "position" (add $idx 1) "item" (dict "@type" "WebApplication" "name" $it.name "url" ($it.url | absURL) "description" (print $it.name " - " $catName " tool by CodeFryDev") "applicationCategory" $catName "operatingSystem" "Web Browser" "offers" (dict "@type" "Offer" "price" "0" "priceCurrency" "USD" "availability" "https://schema.org/InStock") "publisher" (dict "@id" (print $.Site.BaseURL "#organization")))) -}}
268268
{{- end -}}
269269
{{- $homeLists = $homeLists | append (dict "@type" "ItemList" "name" .name "description" (print .name " tools and resources") "numberOfItems" (len .items) "itemListElement" $items) -}}
270270
{{- end -}}
271-
{{- $home := dict "@type" "ItemList" "name" "CodeFryDev Tools and Games Collection" "description" "Complete collection of creative tools, games, and utilities" "url" .Site.BaseURL "numberOfItems" (len .Site.Data.home.categories) "itemListElement" $homeLists -}}
271+
{{- $home := dict "@type" "ItemList" "name" "CodeFryDev Tools and Games Collection" "description" "Complete collection of creative tools, games, and utilities" "url" .Site.BaseURL "numberOfItems" (len hugo.Data.home.categories) "itemListElement" $homeLists -}}
272272
{{- $pageSchema = $pageSchema | append $home -}}
273273
{{- end -}}
274274

275275
{{- /* Games page ItemList */ -}}
276276
{{- if eq .Section "games" -}}
277277
{{- $gameItems := slice -}}
278-
{{- range $idx, $g := .Site.Data.games.data -}}
278+
{{- range $idx, $g := hugo.Data.games.data -}}
279279
{{- $gameItems = $gameItems | append (dict "@type" "ListItem" "position" (add $idx 1) "item" (dict "@type" "VideoGame" "name" $g.name "url" ($g.url | absURL) "description" (print $g.name " - A fun game by CodeFryDev") "genre" "Casual Game" "gamePlatform" "Web Browser" "operatingSystem" "Any" "applicationCategory" "Game" "offers" (dict "@type" "Offer" "price" "0" "priceCurrency" "USD" "availability" "https://schema.org/InStock") "publisher" (dict "@id" (print $.Site.BaseURL "#organization")))) -}}
280280
{{- end -}}
281-
{{- $games := dict "@type" "ItemList" "name" "CodeFryDev Games Collection" "description" "Collection of fun and engaging games developed by CodeFryDev" "url" .Permalink "numberOfItems" (len .Site.Data.games.data) "itemListElement" $gameItems -}}
281+
{{- $games := dict "@type" "ItemList" "name" "CodeFryDev Games Collection" "description" "Collection of fun and engaging games developed by CodeFryDev" "url" .Permalink "numberOfItems" (len hugo.Data.games.data) "itemListElement" $gameItems -}}
282282
{{- $pageSchema = $pageSchema | append $games -}}
283283
{{- end -}}
284284

285285
{{- /* AI page ItemList */ -}}
286286
{{- if eq .Section "ai" -}}
287287
{{- $toolItems := slice -}}
288-
{{- range $idx, $t := .Site.Data.ai.data -}}
288+
{{- range $idx, $t := hugo.Data.ai.data -}}
289289
{{- $toolItems = $toolItems | append (dict "@type" "ListItem" "position" (add $idx 1) "item" (dict "@type" "SoftwareApplication" "name" $t.name "url" ($t.url | absURL) "description" (print $t.name " - AI-powered tool by CodeFryDev") "applicationCategory" "AI Tool" "operatingSystem" "Web Browser" "softwareVersion" "1.0" "offers" (dict "@type" "Offer" "price" "0" "priceCurrency" "USD" "availability" "https://schema.org/InStock") "publisher" (dict "@id" (print $.Site.BaseURL "#organization")) "featureList" (slice "AI-powered functionality" "Easy to use interface" "No installation required" "Cross-platform compatibility"))) -}}
290290
{{- end -}}
291-
{{- $ai := dict "@type" "ItemList" "name" "CodeFryDev AI Tools Collection" "description" "Collection of AI-powered tools and utilities for productivity and creativity" "url" .Permalink "numberOfItems" (len .Site.Data.ai.data) "itemListElement" $toolItems -}}
291+
{{- $ai := dict "@type" "ItemList" "name" "CodeFryDev AI Tools Collection" "description" "Collection of AI-powered tools and utilities for productivity and creativity" "url" .Permalink "numberOfItems" (len hugo.Data.ai.data) "itemListElement" $toolItems -}}
292292
{{- $pageSchema = $pageSchema | append $ai -}}
293293
{{- end -}}
294294

layouts/partials/faq-section.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{{- if .Site.Data.faq.faqs -}}
1+
{{- if hugo.Data.faq.faqs -}}
22
<section class="faq-section" aria-labelledby="faq-heading">
33
<h2 id="faq-heading" class="faq-section-title">Frequently asked questions</h2>
44
<dl class="faq-list">
5-
{{- range .Site.Data.faq.faqs -}}
5+
{{- range hugo.Data.faq.faqs -}}
66
<div class="faq-item">
77
<dt class="faq-question">{{ .question }}</dt>
88
<dd class="faq-answer">{{ .answer }}</dd>

0 commit comments

Comments
 (0)