Giter Club home page Giter Club logo

hugostructureddata's Introduction

HugoStructuredData

Collection of structured data snippets in Google preferred JSON-LD format, with support for Hugo.

Based on the work of: https://github.com/JayHoltslander/Structured-Data-JSON-LD

This uses the Hugo pipelines introduced in Hugo 0.42

Support

  • Feel free to open an issue. Make sure to use one of the templates!
  • Commercial support is available. Integration with your app or services, samples, feature request, etc. Email: [email protected]
  • Powered by: baseflow.com

Usage

Start by adding this theme to your website in the config file:

theme:
- your-own-theme
- structured-data
- some-other-theme

Change the properties inside themes/structured-data/config.yaml to match you details.

Add this snippet to the <head> of your baseof.html

{{ partial "schemas/schema_Global.html" . }}

Add contenttypes to the parameters of the pages you would like to include the schemes in.

---
title: "Some person"
date: 2018-03-28T21:58:30+02:00
contenttypes: ["Person"]
---

Or another example

---
title: "This is a blog and article"
date: 2018-03-28T21:58:30+02:00
contenttypes: ["BlogPosting, "Article"]
---

Other available properties are:

---
type: blog
layout: post
title: "Introducing blog"
date: 2018-06-01T16:40:55+01:00
author: notmartijn
contenttypes: ["BlogPosting"]
---

In this case the author of the file will be notmartijn instead of the default author martijn.

To add, change or remove locations or authors look in the data folder.

hugostructureddata's People

Contributors

martijn00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.