lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
651 stars 363 forks source link

the quotes wrapping the variables are escaping the title text #358

Closed martinsre closed 2 years ago

martinsre commented 2 years ago

Description

The quotes are escaping the title text, which is making the ld+json parsing failing. ex: "John's blog" will be converted to "John\x27s Blog" which is not parsable as ld+json. Discovered using Google search console (https://search.google.com/) SEO analyse. Error:"Unparsable structured data > Bad escape sequence in string" Ref: https://support.google.com/webmasters/answer/9166415#error_types

Issue Number:


Additional Information (Optional)

This seems to be a common hugo problem, for me this solution solved it. I saw the | jsonify | safeJS options on the thread: https://github.com/gohugoio/hugo/issues/8386


Checklist

Yes, I included all necessary artefacts, including:


Testing Checklist

Yes, I ensured that all of the following scenarios were tested:


Notify the following users

@lxndrblz

netlify[bot] commented 2 years ago

Deploy Preview for anatole-demo ready!

Name Link
Latest commit 4be8896f5f26ec91731fb2a03d0a6c15ec5af6dd
Latest deploy log https://app.netlify.com/sites/anatole-demo/deploys/6284205982d68e0008e9c568
Deploy Preview https://deploy-preview-358--anatole-demo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication