1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-24 21:20:17 +01:00
hugo-theme-bootstrap4-blog/layouts/partials
Alan Orth 8ab05ae625
Add Schema.org implementation based on JSON-LD
This replaces the metadata that Hugo's own schema.html template had
been providing, but does so in JSON-LD notation rather than via the
use of <meta> tags (this is Google's currently recommended form of
specifying this markup). There are a few exceptions where I did not
follow the conventions used in Hugo's template, for example the use
of up to six images from a post's frontmatter, because Google's tool
only recognizes one image, as well as different logic for a post's
publish and modified dates (using enableGitInfo = true).

Using this new markup, Google's Structured Data Testing Tool is now
able to understand site metadata much better (before it was reading
none).

The implementation here is a mix of the elements and types from the
official Schema.org types—for example, Blog and BlogPosting—as well
as from Google's search documentation. Note that Google's docs are
geared towards AMP, where some metadata is required, while for non-
AMP pages the metadata is just recommended.

We will have to re-evaluate this in the future, for example to add
height and width information to image metadata.

See: https://schema.org/Blog
See: https://schema.org/BlogPosting
See: https://developers.google.com/search/docs/data-types/data-type-selector
See: https://search.google.com/structured-data/testing-tool
2017-01-20 15:58:30 +02:00
..
cookie-consent.html Start using SRI hashes for CSS/JS assets 2017-01-11 10:42:49 +02:00
disqus.html layouts: retab after addition of modelines 2016-11-24 14:39:39 +02:00
head-custom.html Add ability to insert custom code into the global <head>. (#17) 2016-11-22 21:11:50 +02:00
head-meta.html Add Schema.org implementation based on JSON-LD 2017-01-20 15:58:30 +02:00
meta-terms.html layouts: retab after addition of modelines 2016-11-24 14:39:39 +02:00
sharing-icons.html Update margin around sharing icons for Bootstrap v4 Alpha 6 2017-01-09 16:54:20 +02:00
sidebar.html layouts/partials/sidebar.html: Use .Site.RegularPages instead of .Site.Pages 2017-01-19 15:08:55 +02:00