Giter Club home page Giter Club logo

Comments (4)

dillonzq avatar dillonzq commented on July 18, 2024

Hi, @cmpsoares91
For some reason of Hugo, & in the content won't be escaped as &.
I have fixed & of the subtitle in the home page in #79 .
But I can't fix the behavior of hugo --minify, which replaces some & with & leading to the invalid HTML checking.
Could you show more error information from the google search console?

from loveit.

cmpsoares91 avatar cmpsoares91 commented on July 18, 2024

Hello @dillonzq ,

Sorry for the delayed reply.

I've been looking further into it, and it seems that the template or Hugo itself is modifying the string in the page scheme to hexadecimal ASCII and Google says that their scheme parser is unable to parse it... more specifically the error: "Bad escape sequence in string".

So for the apostrophe example: it is expecting \' instead of \x27 and it happens on other similar occasions.

As is the example of: "datePublished":"2019-03-26T07:31:58\x2b00:00","dateModified":"2020-02-26T03:47:06\x2b00:00"

Many thanks,
Carlos Manuel Soares.

from loveit.

cmpsoares91 avatar cmpsoares91 commented on July 18, 2024

Hello @dillonzq ,

I think I might have a fix for you. But I need to wait for Google's re-index to be sure.
If it confirms the fix, I'll create a PR for you to validate.

So, I'll keep you posted.

Many thanks,
Carlos Manuel Soares.

from loveit.

cmpsoares91 avatar cmpsoares91 commented on July 18, 2024

Nice thanks! Going to test this version!

from loveit.

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.