Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/official-site/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
User-agent: *
Disallow: /examples/authentication/login.sql # Block access to specific sensitive SQL files like this

Allow: / # Allow access to all public-facing SQL-generated pages

Sitemap: https://sql.datapage.app/sitemap.xml
38 changes: 38 additions & 0 deletions examples/official-site/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://sql.datapage.app/</loc>
<lastmod>2024-10-10</lastmod>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it ok to hardcode the date like this ? Won't the prevent re-crawling when we update the page ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it remains hard coded for too long it is an issue, for this first try it is ok

<priority>1.00</priority>
</url>
<url>
<loc>https://sql.datapage.app/component.sql</loc>
<lastmod>2024-10-10</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://sql.datapage.app/documentation.sql</loc>
<lastmod>2024-10-10</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://sql.datapage.app/your-first-sql-website/</loc>
<lastmod>2024-10-10</lastmod>
<priority>0.80</priority>
</url>
Comment on lines +19 to +22
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it ok to have such a little subset of the site in the sitemap ? Won't it penalize other pages ?

We should probably either not have a sitemap, or have one that is generated dynamically in sql

<url>
<loc>https://beta.datapage.app/</loc>
<lastmod>2024-10-10</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://sql.datapage.app/performance.sql</loc>
<lastmod>2024-10-10</lastmod>
<priority>0.60</priority>
</url>
<url>
<loc>https://sql.datapage.app/blog.sql</loc>
<lastmod>2024-10-10</lastmod>
<priority>0.60</priority>
</url>
</urlset>