|
41 | 41 | "contactPoint": { |
42 | 42 | "@type": "ContactPoint", |
43 | 43 | "contactType": "customer service", |
44 | | - "url": "{{ .Site.BaseURL }}contact-us" |
| 44 | + "url": "{{ .Site.BaseURL }}contact-us/" |
45 | 45 | }, |
46 | 46 | "about": { |
47 | 47 | "@type": "AboutPage", |
|
95 | 95 | </script> |
96 | 96 |
|
97 | 97 | {{- /* ============================================ */ -}} |
98 | | -{{- /* FAQ Schema (home only) */ -}} |
| 98 | +{{- /* FAQ Schema (/faq/ only) */ -}} |
99 | 99 | {{- /* ============================================ */ -}} |
100 | | -{{- if and .IsHome hugo.Data.faq -}} |
| 100 | +{{- if and (eq .Section "faq") hugo.Data.faq.faqs -}} |
101 | 101 | {{- if hugo.Data.faq.faqs -}} |
102 | 102 | {{- $faqItems := slice -}} |
103 | 103 | {{- range hugo.Data.faq.faqs -}} |
|
198 | 198 | {{- $pageSchema = $pageSchema | append $aboutUs -}} |
199 | 199 | {{- end -}} |
200 | 200 |
|
| 201 | +{{- /* Contact-us page */ -}} |
| 202 | +{{- if eq .Section "contact-us" -}} |
| 203 | + {{- $contactPage := dict |
| 204 | + "@type" "ContactPage" |
| 205 | + "@id" (printf "%s#contactpage" .Permalink) |
| 206 | + "url" .Permalink |
| 207 | + "name" "Contact us" |
| 208 | + "description" (.Description | default "Get in touch with CodeFryDev for support, feedback, partnerships, and press inquiries.") |
| 209 | + "inLanguage" (.Site.LanguageCode | default "en-US") |
| 210 | + "isPartOf" (dict "@id" (print .Site.BaseURL "#website")) |
| 211 | + "publisher" (dict "@id" (print .Site.BaseURL "#organization")) |
| 212 | + "mainEntity" (dict "@id" (print .Site.BaseURL "#organization")) |
| 213 | + "contactPoint" (dict "@type" "ContactPoint" "contactType" "customer support" "url" .Permalink "availableLanguage" (slice "English")) |
| 214 | + -}} |
| 215 | + {{- $pageSchema = $pageSchema | append $contactPage -}} |
| 216 | +{{- end -}} |
| 217 | + |
201 | 218 | {{- /* Store page */ -}} |
202 | 219 | {{- if eq .Section "store" -}} |
203 | 220 | {{- $store := dict "@type" "Store" "name" "CodeFryDev Store" "description" "Official store for CodeFryDev products and applications" "url" .Permalink "seller" (dict "@id" (print .Site.BaseURL "#organization")) "paymentAccepted" "Free" "currenciesAccepted" "USD" -}} |
|
236 | 253 | {{- $crumbs = $crumbs | append (dict "@type" "ListItem" "position" $pos "name" "History" "item" .Permalink) -}} |
237 | 254 | {{- else if eq $section "press" -}} |
238 | 255 | {{- $crumbs = $crumbs | append (dict "@type" "ListItem" "position" $pos "name" "Press & Media" "item" .Permalink) -}} |
| 256 | + {{- else if eq $section "contact-us" -}} |
| 257 | + {{- $crumbs = $crumbs | append (dict "@type" "ListItem" "position" $pos "name" "Contact us" "item" .Permalink) -}} |
| 258 | + {{- else if eq $section "faq" -}} |
| 259 | + {{- $crumbs = $crumbs | append (dict "@type" "ListItem" "position" $pos "name" "FAQ" "item" .Permalink) -}} |
239 | 260 | {{- else if eq $section "cfddc" -}} |
240 | 261 | {{- if ne $path "/cfddc/" -}} |
241 | 262 | {{- $crumbs = $crumbs | append (dict "@type" "ListItem" "position" $pos "name" "CFDDC" "item" (print .Site.BaseURL "cfddc/")) -}} |
|
0 commit comments