Code embedded in this page will list page titles in the website (blog) in order of publication date - newest to oldest
Blogger (Google) has limited the length of this list so we cannot generate it in a single action.
To get an updated list of all posts in the site, need to edit the page code and change the line:
var startIndex = 1; to get older and older lists of post titles.
- Save the "SiteMap Generator" page with post count of 1 i.e. var startIndex = 1;
- Publish the page
- Review the result on https://dt-hs.blogspot.com/p/sitemap-generator-page.html
- Copy the list of posts into the Page called "SiteMap Working Copy" with line numbering turned on. Note the last number on the list.
- Return to the "SiteMap Generator" and change the post count to a few less than the highest count (this duplicates a couple of posts so you can check that no posts are missed). e.g. var startIndex = 30
- Publish the page
- Repeat until you get to the end of the post list and no new post lists are being created.
- On the "SiteMap Working Copy":
- select all text
- "Clear formatting"
- "Bulleted List"
- Copy new full list
- On the "Sitemap" page:
- Select all text and delete
- Copy and Paste the list from the "SiteMap Working Copy"
Source: StephenDigby May2026
No comments:
Post a Comment