Skip to content

Permalinkable issue in sitemap.xml #5910

Closed

Description

@akshaybabloo

Similar to #5849, discussion at https://discourse.gohugo.io/t/ignore-amp-links-in-sitemap/18387/6 and code at https://github.com/akshaybabloo/gollahalli.com/blob/master/themes/Spark/layouts/sitemap.xml.

hugo version

Hugo Static Site Generator v0.55.4-579004178/extended darwin/amd64 BuildDate: 2019-04-25T07:50:33Z

I have been getting localhost:1313/amp/blog/* links instead of localhost:1313/blog/* in my sitemap and where ever I have used {{ .Permalink }} then I had to disable permalinkable by doing this:

[outputFormats]
  [outputFormats.AMP]
    permalinkable = false

and the links are not AMP anymore.

Activity

  1. self-assigned this
    on Apr 29, 2019
  2. added this to the v0.55.5 milestone on Apr 29, 2019
  3. added 5 commits that reference this issue on May 2, 2019
    cda2331
    93f9b31
    0edbf59
    1a8e170
    3efece0
  4. added a commit that references this issue on May 2, 2019
    6b76841
  5. github-actions commented on Feb 18, 2022

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions