Skip to content

Commit

Permalink
add sitemap tip
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenna committed Jun 10, 2024
1 parent 8f323ba commit 548e0e6
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions book/publishing/publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,17 @@ A sitemap file would look like the following.

```xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.example.com/</loc>
<lastmod>2005-01-01</lastmod>
<loc>https://example.org/landingpage1</loc>
<lastmod>2024-06-10</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>https://example.org/landingpage2</loc>
<lastmod>2024-01-31</lastmod>
<changefreq>monthly</changefreq>
</url>
</urlset>
```

Expand All @@ -245,14 +250,14 @@ a sitemap index, as follows.

```xml
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/site0.9">
<sitemapindex xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://example.org/sitemap_a.xml</loc>
<lastmod>2004-10-01T18:23:17+00:00</lastmod>
<loc>https://example.org/sitemap_a.xml</loc>
<lastmod>2024-06-10</lastmod>
</sitemap>
<sitemap>
<loc>http://example.org/sitemap_b.xml</loc>
<lastmod>2005-01-01</lastmod>
<loc>https://example.org/sitemap_b.xml</loc>
<lastmod>2024-01-01</lastmod>
</sitemap>
</sitemapindex>
```
Expand Down

0 comments on commit 548e0e6

Please sign in to comment.