Copy content from _includes to yours project _includes directory.
To add site json-ld include _includes/json-ld-site.md to your HTML layout body section.
You can specify site properties in project _config.yml file.
Supported site properties:
- date - site creation date
- name - site name
- description - site description
- url - site url
- author - site author name
To add page json-ld include _includes/json-ld-page.md to your HTML layout body section.
You can specify site properties in page/post front matter section.
Supported page/post properties:
- type - page/post type, see schema.org WebPage and more specific types
- title - page/post title
- description - page/post description
- author - page/post author name
- date - page/post creation date
- breadcrumbs - path to this page/post, see this README breadcrumbs section.
Path to page/post can be described with array of breadcrumbs.
Supported breadcrumb properties:
- url - relative URL to page/post
- title - page/post title
- type - page/post type, see schema.org WebPage and more specific types
Common blog post:
breadcrumbs:
- url: /
title: "Your Site Title"
type: AboutPage
- url: /blog/
title: "Blog"
type: CollectionPage
- url: page.url
title: page.title
type: BlogPosting
About author page:
breadcrumbs:
- url: /
title: "Your Site Title"
type: AboutPage
- url: page.url
title: page.title
type: ProfilePage
To add reviews json-ld include _includes/json-ld-reviews.md to your HTML layout body section.
You can specify reviews properties in page/post front matter section.
Supported review properties:
- url - reviewed item URL
- type - reviewed item type, see schema.org itemReviewd, Thing and more specific types
- name - reviewed item name
- isbn - reviewed book ISBN
- author - reviewed item author name
- author_url - reviewed item author about page URL
- content - review content
- rating - review rating
Review takes some properties from site and page specification, see the include source code for more details.
reviews:
- url: http://helion.pl/ksiazki/javascript-programowanie-obiektowe-stoyan-stefanov,jascob.htm
type: Book
author: Stoyan Stefanov
author_url: http://www.phpied.com/
name: JavaScript. Programowanie obiektowe
isbn: 978-83-246-2242-9
rating: 5
description: Recenzja książki 'Javascript. Programowanie obiektowe'
content: Warto mieć w swojej programistycznej biblioteczce książkę 'Javascript. Programowanie obiektowe', zwłaszcza gdy na co dzień zajmujesz się webdevem. Jak wiele książek z cyklu 'Technologie i rozwiązania' wydawnictwa Helion, książka Stoyana Stefanova prezentuje wysoki poziom oraz bez owijania w bawełnę uczy jak pisać dobre oprogramowanie
To add all json-ld snippets to your page just include _includes/json-ld.md to your HTML layout body section.