Sign in

Last modified date/time missing from sitemap

  • This topic has 3 replies, 2 voices, and was last updated 2 years, 10 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3196
    Avatar photoedk
    #3199
    Avatar photoitips3727

    Which theme are you using?

    #3200
    Avatar photoedk

    Simple. With template overrides.

    I’ve found what’s doing it.

    If you use pretty urls in site settings then you have to have a tag prefix, which creates an extra empty directory between the route and the page page in the url, eg topics.

    I didn’t want to do that so I edited the site config json, so that tagsPrefix was empty again. see below.

    This seemed to work fine – all the pages etc generate. The one thing that doesn’t – it seems – is that the last modified timestamps disappear from the sitemap. if add the text back into the config it works again.

     

    “urls”:{
    “cleanUrls”:true,
    “addIndex”:false,
    “tagsPrefix”:””,

     

    #3201
    Avatar photoitips3727

    Hi,

    Okay, got it.

    If you choose “Use Pretty URLs” from Site Settings > URLs, then you must (normally) enter some text for “Tags prefix:”.

    But then, looks like you edited line 77 of config/site.config.json, to delete the entry.

    Even with attempted site override of site.config.json, that probably won’t work.

    So it’s probably not really a bug because it’s meant to have a “Tags prefix” text entry when you opt for “User Pretty URLs”  (that’s the option I often choose too).

    I’m doubt that you can override site.config.json. Perhaps double-check https://getpublii.com/dev/theme-overrides/#js-header

    Maybe @Bob can clarify.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.