Remote teams managing static sites often need a clear process for creating and submitting sitemaps. This article outlines the necessary steps, from understanding sitemap formats to handling large file structures, ensuring your content is discoverable by search engines.
Scenario: A Remote Team Launches a New Static Site
This is a hypothetical scenario, not a recommendation list. A remote product team of four is preparing to publish a static documentation and marketing site for a new release, and one engineer has been asked to settle the sitemap setup before launch. The handoff folder contains three draft assets the team already uses elsewhere: a page inventory spreadsheet with columns for page path, page title, last edited date, canonical URL, and whether the page should be indexed; a configuration note titled “Crawling and Canonicalization” describing the site generator’s build output; and a short checklist called “Launch Day Verification” that lists the checks the team wants performed after deployment.
The engineer proposes three candidate sitemap names for the build output: example-site-index, release-docs-map, and product-sitemap. After reviewing the inventory, the choice falls on product-sitemap, because the team wants the filename to survive future release years without being rewritten; the other two names embed a site identity or a release stage that will age quickly. In the page inventory, two sample fictional records show how entries should be classified. The first record lists the path /docs/install, title “Install the Preview Build,” last edited date 2025-03-14, canonical URL on the documentation host, and indexed set to yes. The second record lists /release-notes/internal, title “Internal Draft Notes,” a last edited date of 2025-03-10, a canonical URL pointing to the internal review host, and indexed set to no. The second record is excluded from the generated sitemap because its canonical URL points to a host that is not part of the public launch, and the inventory marks it as not indexed. The engineer adds a build step that reads the spreadsheet, filters out rows where indexed is no, and writes one sitemap file at the site root. A robots file references that sitemap location using the public protocol and host. The configuration note is used only to confirm which output directory receives static files, so the sitemap lands where the site generator expects it.
Understanding Sitemap Formats and Their Purpose
A sitemap is a file that lists a site's pages, videos, and other files along with their relationships, and Google Search Central documentation states that search engines such as Google read it to crawl the site more efficiently. It can also carry details such as when a page was last updated and whether other language versions exist.1
The documentation describes type-specific entries: video entries can specify duration, rating, and age appropriateness; image entries can include where images on a page are located; news entries can include a report's title and publication date. It also notes that CMS platforms may already generate a sitemap, and that a sitemap helps search engines find URLs but does not guarantee crawling or indexing.1
You can treat the sitemap format as a small editorial decision before you touch the build. Start with one honest inventory of the pages you already plan to publish: which ones are primary landing pages, which are supporting docs, and which are duplicates you intend to fold together. Write those choices down in a short working note, because the format you pick should reflect that map rather than an abstract preference.
The practical distinction is between a single flat sitemap and an index that points to several child sitemaps. For a modest static site, a flat file often reads more clearly; as the page set grows or splits by audience, an index helps you keep sections separate. You might sketch both on paper using your own page list, then compare which one makes omitted or stale pages easier to spot.
As a hypothetical example, a small team might record fields like page group, canonical location, last reviewed date, and status, entering one current marketing page as "marketing, live, reviewed this month" and one retired docs page as "archive, keep but exclude." Repeating that same field set for archived entries keeps the comparison honest, and you can decide later how much of the archive belongs in the published set.
Choosing Between Manual Creation and Automated Tools
The source presents two paths: create the sitemap manually, or have a system generate it automatically. The deciding factor it gives is volume. For a sitemap containing fewer than a few dozen URLs, the source says manual creation may be feasible: open a text editor, follow the syntax described in the format section, and that no particular file name is required as long as it uses characters permitted in URLs.2
Once the site contains more than a few dozen URLs, the source directs you to automatic generation instead. Among automated tools, it recommends using your website software to generate the sitemap, for example by extracting site URLs from a database and exporting them to an actual file on screen or on the web server; it advises consulting your developer or server administrator about that solution. It also notes that a large sitemap can be built by hand, but calls the process tedious and hard to maintain long term.2
Before you decide who or what produces the sitemap file, consider keeping a small hand-written inventory as your source of truth and letting it decide the choice for you. You can record fields such as page group, canonical location, last reviewed date, and status, then fill one row for a current marketing page and one for an archived announcement. If the current row reads “launch notes, live, reviewed this week” and the archived row reads “old pricing notice, kept, reviewed last year,” the archived entry tells you whether it still belongs in the published list or only in your own notes.
You might then ask whether manual editing or a recurring generation step better matches how often those rows change. Manual creation may suit a small set you revise rarely, while an automated step may suit a set that changes with each release; either way, you can compare the resulting list against your rows before publishing.
If you prepare a template, use those same fields with example values, so one set of rows covers both current and archived entries, and let your chosen approach fill the file from them.
Structuring XML Tags for Accurate Crawling
The protocol says every sitemap file must open with a urlset element and close with the same, carry the protocol namespace inside that element, and give each URL a url parent with a loc child. Other tags are optional, and search engines may differ in supporting them. Values need entity escaping, the file must be UTF-8, and all URLs must come from one host. A sitemap index uses sitemapindex, sitemap, and loc instead.3
The optional fields carry their own conditions. The lastmod date should be the page's last modification, not the sitemap generation time. The changefreq values run from always to never, but the protocol treats them as hints, and crawlers may visit outside the stated frequency.3
For this part, take your inventory and turn it into sitemap entries for the current site, then decide how archived announcements should appear. You can keep a simple working sheet with fields such as page group, canonical location, last reviewed date, status, and intended sitemap. A filled current row might read: marketing, current landing path, reviewed 12 September, active, main sitemap. The matching archived row might read: release note, older announcement path, reviewed 3 March, archived, archive sitemap. This hypothetical pair shows how the same fields support two destinations without merging them.
You might then review each row before generating anything: is the canonical location the one you actually want crawled, and does the status still match the page? If an archived entry remains useful but should sit apart, you can note that in the intended sitemap field rather than rewriting the current rows. Consider keeping both sets visible in the sheet until your sitemap choice is settled, so you can compare them at a glance.
As a final check, read the current rows as a group and the archived rows as another, asking whether any page appears in both places unintentionally. You can adjust the sheet or the planned sitemap structure now, before anything is published.
Managing Large Sites with Sitemap Index Files
When a sitemap exceeds size limits, split it into smaller sitemaps and use a sitemap index file to submit multiple sitemaps simultaneously. The index uses XML format defined by the Sitemap Protocol, requiring all standard sitemap rules. Referenced sitemaps must be hosted on the same site or in lower directory levels, unless cross-site submission is configured. A single index file can contain up to 50,000 loc tags, while Search Console allows up to 500 index files per site. Essential tags include sitemapindex as the root, sitemap for each entry, and loc for the URL location. Optional lastmod tags help Google schedule crawling.4
Once your inventory grows past a comfortable single file, you can take one concrete step: split the current rows by page group and write a small index that lists each child file in its own line. Keep the index as a short routing note rather than a second copy of the URLs; you might group marketing pages, documentation sections, and archived announcements into separate child files, then record the group name, the file each group feeds into, and the date you last touched it.
A hypothetical row might read: group, current marketing; child location, the marketing file path under your site root; last reviewed, a date you choose; status, active. The archived row would use the same fields, with the group set to archived announcements and its own child file, so the two sets stay parallel without sharing entries.
Consider whether a page belongs in more than one child file; if it does, you can move its row to a single group and note why. Before you finish, read the index rows top to bottom and ask whether each child file you list has a purpose you can state in a few words.
Validating and Submitting Your Final Sitemap
Submission is a separate step after the file itself is ready. Per the Google Search Center page, submitting a sitemap is only a hint: Google does not guarantee it will download the sitemap or use it to crawl the site's URLs.2
The page lists three ways to give Google access to a sitemap. First, submit it in Search Console through the Sitemaps report, where you can see when Googlebot accessed the sitemap and any processing errors. Second, submit it programmatically using the Search Console API. Third, add a Sitemap line to the robots.txt file with the sitemap's access path; Google will find it the next time it crawls robots.txt.2
Before your team calls the sitemap finished, you can take your final inventory and read it once against the live build: open each current row’s canonical location in a browser, confirm the file on disk matches that path, and drop rows whose status no longer matches the page. Archived rows deserve a separate pass, since a removed announcement may still sit in the build output; you might move it to an archived group or delete the row, then note which choice you made and why. For the submission step, you can treat the sitemap location itself as a field in your inventory—record the path you settled on, the date it last changed, and who on the team confirmed it. When the file is regenerated later, a quick diff between the old and new rows shows what actually shifted before anyone resubmits. If your build writes the file at multiple points, consider keeping one designated copy and letting the others point to it, so search engines see a stable, single list rather than competing versions. Finish with a short note in your project record stating which file you consider authoritative; that note, not the tooling, becomes the reference the next person checks.
Frequently asked questions
Before touching the build, how should I organize my pages into an honest inventory?
You can treat the sitemap format as a small editorial decision before you touch the build. Start with one honest inventory of the pages you already plan to publish: which ones are primary landing pages, which are supporting docs, and which are duplicates you intend to fold together.
What fields can I keep in a simple working sheet when turning my inventory into sitemap entries?
For this part, take your inventory and turn it into sitemap entries for the current site, then decide how archived announcements should appear. You can keep a simple working sheet with fields such as page group, canonical location, last reviewed date, status, and intended sitemap.
Once my inventory grows past a comfortable single file, how should I split the current rows into child files?
Once your inventory grows past a comfortable single file, you can take one concrete step: split the current rows by page group and write a small index that lists each child file in its own line.
什麼是 Sitemap | Google 搜尋中心 | Documentation | Google for Developers . Retrieved 2026-11-21. ↩︎ ↩︎
建立並提交 Sitemap | Google 搜尋中心 | Documentation | Google for Developers . Retrieved 2026-11-21. ↩︎ ↩︎ ↩︎ ↩︎
sitemaps.org - Protocol . Retrieved 2026-11-21. ↩︎ ↩︎
透過 Sitemap 索引檔管理 Sitemap | Google 搜尋中心 | Documentation | Google for Developers . Retrieved 2026-11-21. ↩︎