|
30 | 30 | "foundingDate": "2023", |
31 | 31 | "founder": { |
32 | 32 | "@type": "Person", |
33 | | - "name": "{{ .Site.Author.name }}" |
| 33 | + "name": "{{ .Site.Params.author | default .Site.Title | default "CodeFryDev" }}" |
34 | 34 | }, |
35 | 35 | "sameAs": [ |
36 | 36 | "https://github.com/codefrydev", |
|
95 | 95 | {{- /* ============================================ */ -}} |
96 | 96 | {{- /* FAQ Schema */ -}} |
97 | 97 | {{- /* ============================================ */ -}} |
98 | | -{{- if .Site.Data.faq -}} |
99 | | - {{- if .Site.Data.faq.faqs -}} |
| 98 | +{{- if hugo.Data.faq -}} |
| 99 | + {{- if hugo.Data.faq.faqs -}} |
100 | 100 | {{- $faqItems := slice -}} |
101 | | - {{- range .Site.Data.faq.faqs -}} |
| 101 | + {{- range hugo.Data.faq.faqs -}} |
102 | 102 | {{- $faqItems = $faqItems | append (dict "@type" "Question" "name" .question "acceptedAnswer" (dict "@type" "Answer" "text" .answer)) -}} |
103 | 103 | {{- end -}} |
104 | 104 | {{- if gt (len $faqItems) 0 -}} |
|
119 | 119 | {{- $allProducts := slice -}} |
120 | 120 |
|
121 | 121 | {{- /* Products from home.yaml */ -}} |
122 | | -{{- range .Site.Data.home.categories -}} |
| 122 | +{{- range hugo.Data.home.categories -}} |
123 | 123 | {{- $catName := .name -}} |
124 | 124 | {{- range .items -}} |
125 | 125 | {{- if .url -}} |
|
155 | 155 | {{- end -}} |
156 | 156 |
|
157 | 157 | {{- /* 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 -}} |
161 | 161 | {{- if .url -}} |
162 | 162 | {{- $appUrl := .url -}} |
163 | 163 | {{- if hasPrefix $appUrl "/" -}} |
|
185 | 185 | {{- end -}} |
186 | 186 |
|
187 | 187 | {{- /* 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 -}} |
191 | 191 | {{- if .url -}} |
192 | 192 | {{- $appUrl := .url -}} |
193 | 193 | {{- if hasPrefix $appUrl "/" -}} |
|
215 | 215 | {{- end -}} |
216 | 216 |
|
217 | 217 | {{- /* 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 -}} |
221 | 221 | {{- if .url -}} |
222 | 222 | {{- $appUrl := .url -}} |
223 | 223 | {{- if hasPrefix $appUrl "/" -}} |
|
260 | 260 | {{- /* Home ItemList */ -}} |
261 | 261 | {{- if .IsHome -}} |
262 | 262 | {{- $homeLists := slice -}} |
263 | | - {{- range .Site.Data.home.categories -}} |
| 263 | + {{- range hugo.Data.home.categories -}} |
264 | 264 | {{- $catName := .name -}} |
265 | 265 | {{- $items := slice -}} |
266 | 266 | {{- range $idx, $it := .items -}} |
267 | 267 | {{- $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")))) -}} |
268 | 268 | {{- end -}} |
269 | 269 | {{- $homeLists = $homeLists | append (dict "@type" "ItemList" "name" .name "description" (print .name " tools and resources") "numberOfItems" (len .items) "itemListElement" $items) -}} |
270 | 270 | {{- 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 -}} |
272 | 272 | {{- $pageSchema = $pageSchema | append $home -}} |
273 | 273 | {{- end -}} |
274 | 274 |
|
275 | 275 | {{- /* Games page ItemList */ -}} |
276 | 276 | {{- if eq .Section "games" -}} |
277 | 277 | {{- $gameItems := slice -}} |
278 | | - {{- range $idx, $g := .Site.Data.games.data -}} |
| 278 | + {{- range $idx, $g := hugo.Data.games.data -}} |
279 | 279 | {{- $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")))) -}} |
280 | 280 | {{- 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 -}} |
282 | 282 | {{- $pageSchema = $pageSchema | append $games -}} |
283 | 283 | {{- end -}} |
284 | 284 |
|
285 | 285 | {{- /* AI page ItemList */ -}} |
286 | 286 | {{- if eq .Section "ai" -}} |
287 | 287 | {{- $toolItems := slice -}} |
288 | | - {{- range $idx, $t := .Site.Data.ai.data -}} |
| 288 | + {{- range $idx, $t := hugo.Data.ai.data -}} |
289 | 289 | {{- $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"))) -}} |
290 | 290 | {{- 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 -}} |
292 | 292 | {{- $pageSchema = $pageSchema | append $ai -}} |
293 | 293 | {{- end -}} |
294 | 294 |
|
|
0 commit comments