-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from bennuttall/sitemap
Implement XML sitemap, close #139
- Loading branch information
Showing
9 changed files
with
113 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta name="api-version" value="2" /> | ||
<title>piwheels - Simple index</title> | ||
</head> | ||
<body> | ||
<span tal:repeat="package packages" tal:omit-tag="True"><a href="${package}">${package}</a></span> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>piwheels - Links for ${package}</title> | ||
</head> | ||
<body> | ||
<h1>Links for ${package}</h1> | ||
|
||
<span tal:repeat="row files" tal:omit-tag="True"><a href="${row.filename}#sha256=${row.filehash}">${row.filename}</a><br></span> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
<sitemap> | ||
<loc>https://www.piwheels.org/sitemap0.xml</loc> | ||
<lastmod>${timestamp}</lastmod> | ||
</sitemap> | ||
<span tal:repeat="page pages" tal:omit-tag="1"> | ||
<sitemap> | ||
<loc>https://www.piwheels.org/sitemap${page+1}.xml</loc> | ||
<lastmod>${timestamp}</lastmod> | ||
</sitemap> | ||
</span> | ||
</sitemapindex> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
|
||
<span tal:repeat="package packages" tal:omit-tag="1"> | ||
<url tal:condition="package"> | ||
<loc>https://www.piwheels.org/project/${package}</loc> | ||
</url> | ||
</span> | ||
|
||
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
|
||
<span tal:repeat="page pages" tal:omit-tag="1"> | ||
<url> | ||
<loc>https://www.piwheels.org/${page}</loc> | ||
</url> | ||
</span> | ||
|
||
</urlset> |
Oops, something went wrong.