Code Monkey home page Code Monkey logo

Comments (3)

alanorth avatar alanorth commented on July 27, 2024

Simply using <html itemscope itemtype="http://schema.org/Blog"> makes Google understand the content better on the homepage:

screen shot 2017-01-12 at 15 09 07-fs8

There is a more appropriate BlogPosting type for the posts themselves, but it is problematic as well:

screen shot 2017-01-12 at 15 21 54-fs8

For BlogPosting, Google wants a lot more metadata, like author, date published (don't know if Hugo makes a distinction), etc. Also, note how Hugo's default metadata template includes keywords for ALL posts (!) rather than the current one.

Ideally we need to use a mixture of Blog and BlogPosting, and probably will have to roll our own template logic to do this properly.

from hugo-theme-bootstrap4-blog.

alanorth avatar alanorth commented on July 27, 2024

According to Hugo:

  • Home is a node, is NOT a page, and kind is home
  • Posts are NOT nodes, are pages, an kind is page
  • Category/tag lists are nodes, are NOT pages, and kind is taxonomy

So I think we can use Blog for Home and Nodes, and BlogPosting for Pages. I'm looking over the required metadata for these types right now. We can do this fairly cleanly with template blocks rather than using partials and a bunch of if/else logic.

from hugo-theme-bootstrap4-blog.

alanorth avatar alanorth commented on July 27, 2024

I added a basic implementation of Schema.org markup using JSON-LD in 8ab05ae. It does things much better than Hugo's schema.html template but isn't perfect yet. At least Google can parse this better now, especially on posts!

screen shot 2017-01-20 at 16 05 20-fs8

I will add a section to README.md to specify required/recommended configuration and frontmatter parameters.

from hugo-theme-bootstrap4-blog.

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.