Skip to content

Commit

Permalink
Test Folder Just For Schema Test
Browse files Browse the repository at this point in the history
  • Loading branch information
PrashantUnity committed Jun 25, 2024
1 parent 850e935 commit 9494449
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 3 deletions.
39 changes: 39 additions & 0 deletions content/test/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: "CodeFryDev"
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!"
app:
name: "Tiny Fish"
url: "https://codefrydev.in"
image: "https://codefrydev.in/android-chrome-512x512.png"
description: "Tiny Fish is a charming and tranquil mini-game designed to whisk players away into a serene underwater world"
operatingSystem: ["iOS", "Android"]
category: "Games"
price: "499"
priceCurrency: "INR"
buyUrl: "https://play.google.com/store/apps/details?id=in.codefrydev.developer.abhijeet.tinyfish"
aggregateRating: 5
reviewCount: 10
reviews:
- author: "Alice Johnson"
datePublished: "2023-03-10"
description: "This app has transformed the way I manage my daily tasks. Highly recommended!"
ratingValue: 5
- author: "Bob Lee"
datePublished: "2023-04-05"
description: "A very useful app, though it could use some minor improvements."
ratingValue: 4
faq:
- question: "What is Example App?"
answer: "Example App is a powerful productivity app that helps you organize your tasks and projects."
- question: "How much does Example App cost?"
answer: "Example App costs $9.99."
- question: "Which platforms are supported by Example App?"
answer: "Example App supports iOS and Android."
article:
headline: "How to Use Example App to Boost Your Productivity"
author: "Jane Doe"
datePublished: "2023-06-24"
image: "https://www.example.com/article-image.jpg"
description: "Learn how to use Example App to increase your productivity with these tips and tricks."
draft: true
---
103 changes: 103 additions & 0 deletions layouts/partials/jsonld.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{{/* layouts/partials/jsonld.html */}}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "{{ .Site.BaseURL }}",
"name": "{{ .Site.Title }}",
"url": "{{ .Site.BaseURL }}",
"potentialAction": {
"@type": "SearchAction",
"target": "{{ .Site.BaseURL }}search?query={search_term_string}",
"query-input": "required name=search_term_string"
}
},
{
"@type": "SoftwareApplication",
"name": "{{ .Params.app.name }}",
"url": "{{ .Params.app.url }}",
"image": "{{ .Params.app.image }}",
"description": "{{ .Params.app.description }}",
"operatingSystem": "{{ delimit .Params.app.operatingSystem ", " }}",
"applicationCategory": "{{ .Params.app.category }}",
"offers": {
"@type": "Offer",
"price": "{{ .Params.app.price }}",
"priceCurrency": "{{ .Params.app.priceCurrency }}",
"url": "{{ .Params.app.buyUrl }}",
"availability": "https://schema.org/InStock",
"seller": {
"@type": "Organization",
"name": "{{ .Site.Title }}",
"url": "{{ .Site.BaseURL }}"
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "{{ .Params.app.aggregateRating }}",
"reviewCount": "{{ .Params.app.reviewCount }}"
},
"review": [
{{ range $index, $review := .Params.app.reviews }}
{{ if $index }},{{ end }}
{
"@type": "Review",
"author": {
"@type": "Person",
"name": "{{ $review.author }}"
},
"datePublished": "{{ $review.datePublished }}",
"description": "{{ $review.description }}",
"reviewRating": {
"@type": "Rating",
"ratingValue": "{{ $review.ratingValue }}"
}
}
{{ end }}
],
"publisher": {
"@type": "Organization",
"name": "{{ .Site.Title }}",
"url": "{{ .Site.BaseURL }}"
}
},
{
"@type": "FAQPage",
"mainEntity": [
{{ range $index, $faq := .Params.faq }}
{{ if $index }},{{ end }}
{
"@type": "Question",
"name": "{{ $faq.question }}",
"acceptedAnswer": {
"@type": "Answer",
"text": "{{ $faq.answer }}"
}
}
{{ end }}
]
},
{
"@type": "Article",
"headline": "{{ .Params.article.headline }}",
"author": {
"@type": "Person",
"name": "{{ .Params.article.author }}"
},
"datePublished": "{{ .Params.article.datePublished }}",
"image": "{{ .Params.article.image }}",
"publisher": {
"@type": "Organization",
"name": "{{ .Site.Title }}",
"logo": {
"@type": "ImageObject",
"url": "{{ .Site.BaseURL }}logo.jpg"
}
},
"description": "{{ .Params.article.description }}"
}
]
}
</script>
23 changes: 23 additions & 0 deletions layouts/test/test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{{/* layouts/_default/baseof.html */}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ .Title }}</title>
<!-- Other head elements -->

{{ partial "jsonld.html" . }}
</head>
<body>
<header>
<h1>Welcome to {{ .Site.Title }}</h1>
</header>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
<!-- Footer content -->
</footer>
</body>
</html>
3 changes: 0 additions & 3 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://localhost:1313/about/</loc>
<lastmod>2023-01-01T00:00:00+00:00</lastmod>
</url><url>
<loc>http://localhost:1313/</loc>
<lastmod>2023-01-01T00:00:00+00:00</lastmod>
</url><url>
Expand Down

0 comments on commit 9494449

Please sign in to comment.