Giter Site home page Giter Site logo

Comments (2)

dijitali avatar dijitali commented on May 18, 2024 2

Thanks for such a considered response! Totally on board with you on both these points, I just hadn't realised how much was inherited by this repo.

The first one would be ideal if it could be set as an actual HTTP response header but totally outside the scope of this and it looks like the second point has already been raised as a Hugo bug in gohugoio/hugo#7431.

Hope you have a great weekend too!

from hugo-bearblog.

janraasch avatar janraasch commented on May 18, 2024

Hi @dijitali, thank you for getting in touch πŸ‘‹.

http-equiv

This might not be Β»validΒ«, but it's just a fun meta-tag we inherited from the original bearblog. See

The source code is here: https://github.com/HermanMartinus/bearblog/blob/master/templates/base.html#L5.

ℹ️ Here's the story behind this non-standardised HTTP header: https://xclacksoverhead.org/home/about

itemprop

This one baffles me a little bit. We are using Hugos very own _internal/schema.html-template here. The code is over at https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/schema.html.

I went and checked what's up on the Hugo News-blog and they actually use it just in exactly the same way we do. Thus they get the same error on the w3c-validator, see https://validator.w3.org/nu/?doc=https%3A%2F%2Fgohugo.io%2Fnews%2F

If you want to persue this further I'd suggest opening up an issue on the main Hugo repo, which includes the _internal/schema.html-template, so this can be fixed centrally.

➑️ Thus - I think - we'll just have to live with these errors on the validator (for now?).


If you have a requirement for your personal website to be 100% valid against the w3c-validator you may overwrite the

  • baseof.html (This includes the non-valid header) and
  • seo_tags.html (This includes the non-valid item props)

templates locally.

I hope that helps πŸ™.

Kind regards and have a good weekend 🏝.

from hugo-bearblog.

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.