Comments (3)
Simply using <html itemscope itemtype="http://schema.org/Blog">
makes Google understand the content better on the homepage:
There is a more appropriate BlogPosting
type for the posts themselves, but it is problematic as well:
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.
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.
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!
I will add a section to README.md to specify required/recommended configuration and frontmatter parameters.
from hugo-theme-bootstrap4-blog.
Related Issues (20)
- publisher missing in structured data HOT 2
- Header title link does not follow base URL
- If you rebuild the css, visitors to your site do not get the new css file if they have the old css file cached. HOT 4
- Css Entire page shifts out of alignment. HOT 2
- theme/layhouts/_default/list.html HOT 1
- Tag and category links missing trailing slash
- Character escape issue with schema dot org and Google Crawler HOT 1
- How to add background image to the site? HOT 1
- Create relative links only HOT 2
- Font awesome icon availability HOT 3
- Project zip file being detected as virus HOT 2
- Can't tip you with BAT tokens :) HOT 4
- custom head not working HOT 2
- params are not optional HOT 1
- Did not add PrismJS very well HOT 4
- Recommended way to customize CSS on the theme? HOT 2
- dropdown menu does not work HOT 1
- Please include the tables CSS HOT 1
- Support for Submenus HOT 2
- Why does the build version of this theme doesn't look like the live one? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-bootstrap4-blog.