GithubHelp home page GithubHelp logo

Comments (9)

welpo avatar welpo commented on May 18, 2024 1

I'll add the option to pages, sections and config.toml, with a warning in comments as to the "content needs to really match" issue.

from tabi.

donovanglover avatar donovanglover commented on May 18, 2024 1

Would love to try it out! Should be able to test it sometime this weekend

from tabi.

donovanglover avatar donovanglover commented on May 18, 2024 1

Seems to work for me, thanks!

from tabi.

welpo avatar welpo commented on May 18, 2024

This would only make sense as a page.extra variable, right? I.e. in individual posts but not on config.toml or sections.

from tabi.

donovanglover avatar donovanglover commented on May 18, 2024

Personally I would only use config.toml since I have multiple domains and one does better in search results. So https://example.link/ has canonical URLs to https://betterforseo.com/.

page.extra could be useful for one-time things though.

from tabi.

welpo avatar welpo commented on May 18, 2024

From my reading, I understood the canonical tag is intended to specify the authoritative version of each individual page, so it needs to match the content and context of that specific page.

If that's correct, setting a single URL for all pages on a site would not be appropriate.

Would you expect the canonical URL to be smart? For example, to set a base_canonical_url on config.toml and have it match the base_url content. In this case, example.com/post1 would match to example.es/post1.

from tabi.

donovanglover avatar donovanglover commented on May 18, 2024

That's correct.

from tabi.

welpo avatar welpo commented on May 18, 2024

@donovanglover would you like to test the feature on the branch feat/custom-canonical-url?

from tabi.

welpo avatar welpo commented on May 18, 2024

Thanks for testing! The feature is now live, following PR #168.

from tabi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.