Skip to content

Commit 9494449

Browse files
committed
Test Folder Just For Schema Test
1 parent 850e935 commit 9494449

File tree

4 files changed

+165
-3
lines changed

4 files changed

+165
-3
lines changed

content/test/_index.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "CodeFryDev"
3+
description: "CodeFryDev is your ultimate destination for diverse digital content and tools. Enjoy our extensive game collection, innovative productivity apps, and micro applications for quick solutions. Access educational materials, interactive courses, and comprehensive tutorials for all skill levels. Fuel your creativity with design resources and versatile tools for efficient project completion. Visit CodeFryDev today and explore all we have to offer!"
4+
app:
5+
name: "Tiny Fish"
6+
url: "https://codefrydev.in"
7+
image: "https://codefrydev.in/android-chrome-512x512.png"
8+
description: "Tiny Fish is a charming and tranquil mini-game designed to whisk players away into a serene underwater world"
9+
operatingSystem: ["iOS", "Android"]
10+
category: "Games"
11+
price: "499"
12+
priceCurrency: "INR"
13+
buyUrl: "https://play.google.com/store/apps/details?id=in.codefrydev.developer.abhijeet.tinyfish"
14+
aggregateRating: 5
15+
reviewCount: 10
16+
reviews:
17+
- author: "Alice Johnson"
18+
datePublished: "2023-03-10"
19+
description: "This app has transformed the way I manage my daily tasks. Highly recommended!"
20+
ratingValue: 5
21+
- author: "Bob Lee"
22+
datePublished: "2023-04-05"
23+
description: "A very useful app, though it could use some minor improvements."
24+
ratingValue: 4
25+
faq:
26+
- question: "What is Example App?"
27+
answer: "Example App is a powerful productivity app that helps you organize your tasks and projects."
28+
- question: "How much does Example App cost?"
29+
answer: "Example App costs $9.99."
30+
- question: "Which platforms are supported by Example App?"
31+
answer: "Example App supports iOS and Android."
32+
article:
33+
headline: "How to Use Example App to Boost Your Productivity"
34+
author: "Jane Doe"
35+
datePublished: "2023-06-24"
36+
image: "https://www.example.com/article-image.jpg"
37+
description: "Learn how to use Example App to increase your productivity with these tips and tricks."
38+
draft: true
39+
---

layouts/partials/jsonld.html

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{{/* layouts/partials/jsonld.html */}}
2+
<script type="application/ld+json">
3+
{
4+
"@context": "https://schema.org",
5+
"@graph": [
6+
{
7+
"@type": "WebSite",
8+
"@id": "{{ .Site.BaseURL }}",
9+
"name": "{{ .Site.Title }}",
10+
"url": "{{ .Site.BaseURL }}",
11+
"potentialAction": {
12+
"@type": "SearchAction",
13+
"target": "{{ .Site.BaseURL }}search?query={search_term_string}",
14+
"query-input": "required name=search_term_string"
15+
}
16+
},
17+
{
18+
"@type": "SoftwareApplication",
19+
"name": "{{ .Params.app.name }}",
20+
"url": "{{ .Params.app.url }}",
21+
"image": "{{ .Params.app.image }}",
22+
"description": "{{ .Params.app.description }}",
23+
"operatingSystem": "{{ delimit .Params.app.operatingSystem ", " }}",
24+
"applicationCategory": "{{ .Params.app.category }}",
25+
"offers": {
26+
"@type": "Offer",
27+
"price": "{{ .Params.app.price }}",
28+
"priceCurrency": "{{ .Params.app.priceCurrency }}",
29+
"url": "{{ .Params.app.buyUrl }}",
30+
"availability": "https://schema.org/InStock",
31+
"seller": {
32+
"@type": "Organization",
33+
"name": "{{ .Site.Title }}",
34+
"url": "{{ .Site.BaseURL }}"
35+
}
36+
},
37+
"aggregateRating": {
38+
"@type": "AggregateRating",
39+
"ratingValue": "{{ .Params.app.aggregateRating }}",
40+
"reviewCount": "{{ .Params.app.reviewCount }}"
41+
},
42+
"review": [
43+
{{ range $index, $review := .Params.app.reviews }}
44+
{{ if $index }},{{ end }}
45+
{
46+
"@type": "Review",
47+
"author": {
48+
"@type": "Person",
49+
"name": "{{ $review.author }}"
50+
},
51+
"datePublished": "{{ $review.datePublished }}",
52+
"description": "{{ $review.description }}",
53+
"reviewRating": {
54+
"@type": "Rating",
55+
"ratingValue": "{{ $review.ratingValue }}"
56+
}
57+
}
58+
{{ end }}
59+
],
60+
"publisher": {
61+
"@type": "Organization",
62+
"name": "{{ .Site.Title }}",
63+
"url": "{{ .Site.BaseURL }}"
64+
}
65+
},
66+
{
67+
"@type": "FAQPage",
68+
"mainEntity": [
69+
{{ range $index, $faq := .Params.faq }}
70+
{{ if $index }},{{ end }}
71+
{
72+
"@type": "Question",
73+
"name": "{{ $faq.question }}",
74+
"acceptedAnswer": {
75+
"@type": "Answer",
76+
"text": "{{ $faq.answer }}"
77+
}
78+
}
79+
{{ end }}
80+
]
81+
},
82+
{
83+
"@type": "Article",
84+
"headline": "{{ .Params.article.headline }}",
85+
"author": {
86+
"@type": "Person",
87+
"name": "{{ .Params.article.author }}"
88+
},
89+
"datePublished": "{{ .Params.article.datePublished }}",
90+
"image": "{{ .Params.article.image }}",
91+
"publisher": {
92+
"@type": "Organization",
93+
"name": "{{ .Site.Title }}",
94+
"logo": {
95+
"@type": "ImageObject",
96+
"url": "{{ .Site.BaseURL }}logo.jpg"
97+
}
98+
},
99+
"description": "{{ .Params.article.description }}"
100+
}
101+
]
102+
}
103+
</script>

layouts/test/test.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{/* layouts/_default/baseof.html */}}
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>{{ .Title }}</title>
8+
<!-- Other head elements -->
9+
10+
{{ partial "jsonld.html" . }}
11+
</head>
12+
<body>
13+
<header>
14+
<h1>Welcome to {{ .Site.Title }}</h1>
15+
</header>
16+
<main>
17+
{{ block "main" . }}{{ end }}
18+
</main>
19+
<footer>
20+
<!-- Footer content -->
21+
</footer>
22+
</body>
23+
</html>

public/sitemap.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
33
xmlns:xhtml="http://www.w3.org/1999/xhtml">
44
<url>
5-
<loc>http://localhost:1313/about/</loc>
6-
<lastmod>2023-01-01T00:00:00+00:00</lastmod>
7-
</url><url>
85
<loc>http://localhost:1313/</loc>
96
<lastmod>2023-01-01T00:00:00+00:00</lastmod>
107
</url><url>

0 commit comments

Comments
 (0)