Code Monkey home page Code Monkey logo

Comments (4)

adityatelange avatar adityatelange commented on June 10, 2024 1

Yes you are supposed to use a baseURL and not build with a / in baseURL, not recommended

Do I understand correctly that not setting a baseURL is not a valid use-case with PaperMod?

It's not only about use cases but what implementation works with the rest of the functions without breaking anything.

from hugo-papermod.

pierreprinetti avatar pierreprinetti commented on June 10, 2024

Something interesting happens when I set a base URL.

$ HUGO_BASEURL=https://example.com/ hugo --minify
Start building sites …
hugo v0.123.6+extended linux/amd64 BuildDate=unknown


                   | EN
-------------------+-----
  Pages            | 11
  Paginator pages  |  0
  Non-page files   |  0
  Static files     |  0
  Processed images |  0
  Aliases          |  2
  Cleaned          |  0

Total in 41 ms

First of all, it succeeds. And the breadcrumb JSON items now have the correct "position" numbers:

{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Posts",
      "item": "https://example.com/posts/"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "This is a reproducer for a PaperMod bug",
      "item": "https://example.com/posts/2024-02-27_reproducer/"
    }
  ]
}

(it was minified in the file; I have pretty-printed it here for readability)

from hugo-papermod.

adityatelange avatar adityatelange commented on June 10, 2024

Yes you are supposed to use a baseURL and not build with a / in baseURL, not recommended

from hugo-papermod.

pierreprinetti avatar pierreprinetti commented on June 10, 2024

Yes you are supposed to use a baseURL and not build with a / in baseURL, not recommended

Do I understand correctly that not setting a baseURL is not a valid use-case with PaperMod?

from hugo-papermod.

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.