Skip to content

Commit

Permalink
URL, Image, Video Sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
Venkatesh-KCET committed Jun 17, 2023
1 parent 1895ef2 commit 20aaf5f
Show file tree
Hide file tree
Showing 6 changed files with 470 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/
26 changes: 26 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "venkatesh-kcet/sitemap",
"description": "Sitemap Generator",
"type": "library",
"license": "MIT",
"keywords": [
"Sitemap",
"Sitemap Generator",
"urlset",
"siteindex"
],
"autoload": {
"psr-4": {
"VenkateshKcet\\Sitemap\\": "src/"
}
},
"authors": [
{
"name": "Venkatesh S",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"prefer-stable": true,
"require": {}
}
6 changes: 6 additions & 0 deletions sitemap-index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sitemapindex>
<sitemap>
<loc>http://localhost/sitemap/sitemap0.xml</loc>
</sitemap>
</sitemapindex>
41 changes: 41 additions & 0 deletions sitemap0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>https://pypi.org/search/?q=sitemap</loc>
<loc>https://pypi.org/search/1.png</loc>
<image:image>
<image:loc>https://pypi.org/search/1.png</image:loc>
</image:image>
<loc>https://pypi.org/search/2.png</loc>
<image:image>
<image:loc>https://pypi.org/search/2.png</image:loc>
</image:image>
<video:video>
<video:thumbnail_loc>https://www.example.com/thumbs/123.jpg</video:thumbnail_loc>
<video:title>Grilling steaks for summer</video:title>
<video:description>Alkis shows you how to get perfectly done steaks every time</video:description>
<video:content_loc>http://streamserver.example.com/video123.mp4</video:content_loc>
<video:player_loc>https://www.example.com/videoplayer.php?video=123</video:player_loc>
<video:duration>600</video:duration>
<video:expiration_date>2021-11-05T19:20:30+08:00</video:expiration_date>
<video:rating>4.2</video:rating>
<video:view_count>12345</video:view_count>
<video:publication_date>2007-11-05T19:20:30+08:00</video:publication_date>
<video:family_friendly>yes</video:family_friendly>
<video:restriction relationship="allow">IE GB US CA</video:restriction>
<video:platform relationship="allow">web tv</video:platform>
<video:price currency="EUR">1.99</video:price>
<video:requires_subscription>yes</video:requires_subscription>
<video:uploader info="https://www.example.com/users/grillymcgrillerson">GrillyMcGrillerson</video:uploader>
<video:live>no</video:live>
<video:tag>outdoor</video:tag>
</video:video>
<video:video>
<video:thumbnail_loc>https://www.example.com/thumbs/123.jpg</video:thumbnail_loc>
<video:title>Grilling steaks for summer</video:title>
<video:description>Alkis shows you how to get perfectly done steaks every time</video:description>
<video:content_loc>http://streamserver.example.com/video123.mp4</video:content_loc>
<video:player_loc>https://www.example.com/videoplayer.php?video=123</video:player_loc>
</video:video>
</url>
</urlset>
Loading

0 comments on commit 20aaf5f

Please sign in to comment.