Giter Club home page Giter Club logo

Comments (3)

ghreyt avatar ghreyt commented on July 22, 2024

I have experienced the same issue and figured out what the problem is.

It is the bug of Hugo v0.13 (gohugoio/hugo#1105).
.Site.BaseUrl variable in template has trailing slash inconsistently.
They fixed that in v0.14 in two ways:

  1. providing the function 'absUrl' for template
  2. no trailing slash for .Site.BaseUrl

So simply you can go over this issue with Hugo v0.14 or you can modify a bit of codes like this.
(https://github.com/ghreyt/hugo-theme-casper/commit/e94513c41ee6069682ac44447fb06290043e73e8)

from hugo-theme-casper.

hbokh avatar hbokh commented on July 22, 2024

Merci beaucoup! It works as expected with the new hugo 0.14.
I guess you will adapt the theme soon for the new variable and function names, right?

ERROR: 2015/05/26 Node's .Url is deprecated and will be removed in Hugo 0.15. Use .URL instead.
ERROR: 2015/05/26 Site's .BaseUrl is deprecated and will be removed in Hugo 0.15. Use .BaseURL instead.
ERROR: 2015/05/26 MenuEntry's .Url is deprecated and will be removed in Hugo 0.15. Use .URL instead.
ERROR: 2015/05/26 Template's safeHtml is deprecated and will be removed in Hugo 0.15. Use safeHTML instead.

from hugo-theme-casper.

vjeantet avatar vjeantet commented on July 22, 2024

fixed with #18

thanks for the update

from hugo-theme-casper.

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.