Skip to content
pinegrow.com

Site map for search engines

Create sitemap.xml, a site map page for visitors and the robots.txt Sitemap line for a Pinegrow project. Choose which pages are listed, fix search engine titles and descriptions, and update the site map every time you publish.

On this page
Requires Pinegrow 10.1 - Not released yet

Pinegrow can create the site map of your website: the sitemap.xml file that tells Google, Bing and other search engines which pages your site has. The Site map view decides which pages belong in it and shows why, checks the search engine title and description of every page, and writes sitemap.xml, a site map page for visitors and the Sitemap: line in robots.txt. Turn on one option and every publish updates the site map, so it always lists the pages that are on your live site.

The Site map view is part of Pinegrow Desktop. WordPress projects don’t need it, because WordPress creates its own site map at /wp-sitemap.xml.

Open the site map

Open a project and choose File › Site map…. You can also click the project name in the Project panel and choose Site map….

Pinegrow's Site map view for the little-kiln project. The page list on the left shows the drafts, journal and workshops folders and pages such as index.html, about.html and visit.html tagged IN, while 404.html is tagged OUT. 404.html is selected: its details say Not in the site map: error page, with Automatic chosen, its title Page not found | Little Kiln, the description, canonical URL, language, and a search result preview. The status bar reads 18 pages, 17 in site map, 1 left out, 5 problems.
The Site map view lists every page with an IN or OUT tag and the reason. 404.html is left out automatically because it is an error page.

The Site map view lists every HTML page of the project in its folders:

  • IN or OUT next to a page shows whether the site map lists it. Select the page to see why.
  • The buttons above the list filter it: All, In site map, Left out and Issues.
  • On the right are the selected page’s site map choice, its search engine fields and a preview of how it could look in search results.
  • The status bar counts the pages, how many are in the site map and left out, and the problems Pinegrow found.

Click Close to return to the editor.

Pages that are left out automatically

You don’t have to sort the pages by hand. Pinegrow lists every HTML page except:

  • error pages: 400, 401, 403, 404, 410, 500 and 503, for example 404.html;
  • master pages;
  • pages marked noindex (see Keep a page out of search results below);
  • pages whose canonical URL points to another address. Pinegrow checks this once the site URL is set;
  • files you excluded from publishing with Exclude… in Publish;
  • the site map page sitemap.html itself, when the site map page is on;
  • PHP pages, unless Include PHP pages is on in the settings.

The page details say why a page is left out, for example Not in the site map: error page.

Set up the site map

Click Settings in the Site map view. You set this up once; the settings are saved with the project.

The Site map settings dialog. Site URL is https://little-kiln.pages.dev. Checked: XML site map (sitemap.xml), Site map page (sitemap.html), Link to folders instead of index pages, Leave out .html from page addresses, Include the last changed dates, Add the site map to robots.txt and Update the site map when publishing. Text site map and Include PHP pages are unchecked, Save in folder is empty and Title ending is | Little Kiln. The buttons are Cancel and Save.
Set the site URL, the files to create and the publishing option once per project. On a Cloudflare Pages project the address is filled in and Leave out .html is checked.
  • Site URL: the public address of the site, for example https://little-kiln.pages.dev. Site maps list complete addresses, so the XML and text site maps need it. If the project has a Netlify, Cloudflare Pages or SFTP publish target, Pinegrow fills it in from the target.
  • XML site map (sitemap.xml): the file search engines read.
  • Text site map (sitemap.txt): a plain list of the addresses, one per line.
  • Site map page (sitemap.html): a page for visitors with links to every listed page, grouped by folder.
  • Save in folder: the folder for the site map files. Leave it empty to use the project folder.
  • Link to folders instead of index pages: lists journal/ instead of journal/index.html.
  • Leave out .html from page addresses: lists about instead of about.html, for hosts that serve pages without .html. Cloudflare Pages redirects about.html to about, so Pinegrow checks this option when you first set up the site map of a project that publishes to Cloudflare Pages. The site map page still links to the .html files.
  • Include the last changed dates: adds the date each page was last saved, so search engines know which pages to read again.
  • Include PHP pages: lists .php pages too.
  • Title ending: text such as | Little Kiln that Pinegrow can add to page titles. The site map page leaves it out of its link texts.
  • Add the site map to robots.txt: adds a Sitemap: line with the address of the site map, so search engines can find it on their own. Pinegrow creates robots.txt if the project has none.
  • Update the site map when publishing: updates the site map on every publish, see below.

Choose the pages yourself

Leave out or include a page

Select a page and set Site map to Leave out, Include or back to Automatic. The choice is saved right away.

The Site map view with styleguide.html selected. In the details, the Site map choice is set to Leave out and the line below says Not in the site map: you left it out. In the page list, styleguide.html is tagged OUT, like 404.html, menu-print.html and sitemap.html.
Choose Leave out for a page that should not be listed. The page is tagged OUT and the details say why.

Include lists a page that Pinegrow would leave out automatically, for example an error page or a page in a left-out folder. It can’t list a page that is marked noindex, excluded from publishing or made by the site map.

Leave out a folder

Select a folder and choose Leave out the folder. The rule also covers pages you add to the folder later, so drafts stay out of the site map. A page in the folder that is set to Include is still listed.

The Site map view with the drafts folder selected. Its details show 2 pages, 0 in site map and 0 problems, and under Folder in the site map the choice Leave out the folder is selected, with the note The folder rule also covers pages you add to it later. A page set to Include is still listed. In the page list, drafts is struck through with the count 0/2.
Leave out a whole folder. The rule also covers pages you add to the folder later.

Your page and folder choices are kept with the project. They follow pages and folders you rename or move, and are forgotten when you delete them.

Keep a page out of search results

Turn off Search engines may show this page for a page that search engines should not show at all, such as a thank-you page. When you save the changes, Pinegrow adds noindex to the page’s robots meta tag, and the site map leaves the page out.

Fix search engine titles and descriptions

Click Issues to list only the pages with problems. Pinegrow checks every page it can list for:

  • no title, or no title and no description;
  • a title longer than 60 characters, which search results cut off;
  • the same title on several pages;
  • no description on a page in the site map, so search results show a piece of the page instead;
  • a description longer than 155 characters;
  • a page set to Include that is marked noindex.

The counters under Title and Description show their length against 60 and 155 characters.

The Site map view filtered to Issues 5, listing rye-from-the-valley.html, croissant-weekend.html and sourdough-basics.html (No title), about.html and visit.html. visit.html is selected. A notice says The title has 79 characters. Search results cut it after about 60. The Title field holds Visit Little Kiln Bakehouse in Ljubljana: Opening Hours, Address and Pre-Orders with the counter 79 / 60, and an H1 button and an AI button above the field.
The Issues filter lists pages with search engine problems. This title has 79 characters; the H1 button makes a shorter one from the page’s main heading.

Two buttons next to Title help with one page:

  • H1 makes a title from the page’s main heading and adds your title ending.
  • The AI button suggests a title and a description with the AI Assistant, written from the content of the page.

The search result preview updates as you type.

Fix several pages at once

Tick the checkboxes of several pages, or click Select the pages of this folder on a folder, to change them together:

The Site map view with two pages selected, workshops/croissant-weekend.html and workshops/sourdough-basics.html, both marked No title. The details say 2 of 2 selected pages are in the site map and 2 without a title, 0 without a description, with the buttons Use headings for missing titles, Suggest missing with AI and Add | Little Kiln to titles, and the Search engines choice May show the pages or Mark noindex.
Select several pages to fix them together: make titles from their headings, or ask AI for the missing titles and descriptions.
  • Use headings for missing titles gives each page without a title one made from its main heading.
  • Suggest missing with AI asks the AI Assistant for the missing titles and descriptions. It fills only empty fields and keeps the text you already have.
  • Add “| Little Kiln” to titles adds your title ending to the titles that don’t have it yet.
  • Site map and Search engines change the choice and the noindex setting of all selected pages.

Save the changes

Field changes stay unsaved, and the changed pages stay in the filtered list, until you click Save changes. Check them first, especially AI suggestions. Saving writes the titles, descriptions, canonical URLs, languages and noindex settings into the pages. You can undo it as one change, Set search engine fields.

A field is disabled when the page doesn’t allow the change, for example because of the project’s editing restrictions, or when the title is written by code in the page.

Generate the site map

Click Generate site map. Pinegrow writes:

  • sitemap.xml with the full address of every listed page and, if the option is on, the date it was last changed;
  • sitemap.txt, if it’s on;
  • sitemap.html, if the site map page is on;
  • the Sitemap: line in robots.txt, if it’s on.
The Site map view with sitemap.html selected after generating. The details say Pinegrow writes this page when it generates the site map. Design it in the editor: only the list inside the element with the data-pg-sitemap attribute is replaced. The preview shows the designed Little Kiln page Every loaf on the shelf, with links to sitemap.xml and robots.txt and a numbered list starting with Little Kiln Bakehouse | Wood-fired bread in Ljubljana.
Generate site map writes sitemap.xml, robots.txt and the list in your own designed sitemap.html. The rest of the page stays as you designed it.

You can design the site map page like any other page. Add an element with the data-pg-sitemap attribute where the list should go, and Pinegrow replaces only the content of that element when it generates the site map. Without such a page, Pinegrow creates a simple sitemap.html.

If sitemap.xml, sitemap.txt, sitemap.html or robots.txt already exists and Pinegrow didn’t create it, Pinegrow asks before replacing it. Turning a format off later doesn’t delete the file it wrote before.

A site map can list at most 50,000 pages and be at most 50 MB, the limits search engines read.

Update the site map when you publish

Turn on Update the site map when publishing in the settings. Every publish to production then runs a Site map step after saving your pages and before the review. It updates the site map files, and the publish uploads them with the rest of the site.

The Publish Project workspace for the Cloudflare Pages target little-kiln after a production publish. It says The site is published! with Visit the published site, Copy URL and Site admin buttons. The details list Saving project files..., Updating the site map..., Site map updated: 12 pages., Preparing publish plan..., Collecting project files..., Excluded 1 file(s) from publishing., Computing file digests (37 files)... and Hashed 37 / 37 files....
With Update the site map when publishing on, every publish to production updates the site map first and logs how many pages it lists.

Click See details after publishing to see Site map updated: and the number of listed pages. New pages are listed and deleted pages drop out without an extra step.

  • Preview deployments don’t update the site map.
  • Files you excluded from publishing are left out of the site map.
  • If the site map can’t be updated, the log says why and publishing continues with the files as they are.

See Publish your website for publish targets and the review.

Submit the site map to search engines

After the first publish, add the address of your site map, for example https://little-kiln.pages.dev/sitemap.xml, in Google Search Console and Bing Webmaster Tools. You do this once. When the site map changes, search engines read the new version.

When the site map is not updated

  • Enter the site URL in the site map settings: the XML and text site maps need complete addresses. Open Settings and enter the Site URL.
  • Choose at least one site map format in the site map settings: turn on the XML site map, the text site map or the site map page.
  • Site map was not updated, because … could not be read: Pinegrow could not read a page, and a site map without it would remove the page from search engines. Check that the file exists and opens, then publish or generate again.
  • … not updated, because Pinegrow did not create it: when publishing, Pinegrow doesn’t replace a site map file it didn’t write. Click Generate site map in the Site map view and confirm Replace once.
  • The site map can list at most 50,000 pages: leave out folders or pages you don’t need search engines to read.