Skip to content

Instantly share code, notes, and snippets.

Avatar

Jono Alderson jono-alderson

View GitHub Profile
View yoast-howto-schema.js
{
"@context": "https://schema.org",
"@graph": [
{
"@type" : "Organization",
"@id" : "https://www.example.com/#organization",
"url" : "https://www.example.com/",
"name" : "{{Organization Name}}",
"logo" : {
"@type" : "ImageObject",
View yoast-faq-json.js
{
"@context": "https://schema.org",
"@graph": [{
"@type" : "Organization",
"@id" : "https://www.example.com/#organization",
"url" : "https://www.example.com/",
"name" : "{{Organization Name}}",
"logo" : {
"@type" : "ImageObject",
"@id" : "https://www.example.com/#logo",
@jono-alderson
jono-alderson / yoast-schema-example-product.js
Last active Oct 23, 2018
Yoast Schema Example - Product
View yoast-schema-example-product.js
{
"@context": "https://schema.org",
"@graph": [
// Organization
{
"@type" : "Organization",
"@id" : "https://www.example.com/#organization",
"url" : "https://www.example.com/",
"mainEntityOfPage" : "https://www.example.com/",
"name" : "{{Organization Name}}",
@jono-alderson
jono-alderson / yoast-schema-example-blogpost.js
Last active Oct 24, 2018
Yoast Schema Example - Blog Post
View yoast-schema-example-blogpost.js
{
"@context": "https://schema.org",
"@graph": [
// Organization
{
"@type" : "Organization",
"@id" : "https://www.example.com/#organization",
"url" : "https://www.example.com/",
"mainEntityOfPage" : "https://www.example.com/",
"name" : "{{Organization Name}}",
@jono-alderson
jono-alderson / yoast-schema-example-generic.js
Last active Oct 23, 2018
Yoast Schema Example - Generic
View yoast-schema-example-generic.js
{
"@context": "https://schema.org",
"@graph": [
// Organization
{
"@type" : "Organization",
"@id" : "https://www.example.com/#organization",
"url" : "https://www.example.com/",
"mainEntityOfPage" : "https://www.example.com/",
"name" : "{{Organization Name}}",
@jono-alderson
jono-alderson / userAgentSEO.php
Last active Nov 29, 2018
Looks up the user agent against a known list, and outputs a HTML comment
View userAgentSEO.php
<?php
// Quick script to check and output the user agent in a HTML comment
// Jono Alderson [https://www.jonoalderson.com]
// =================================
// Google user agent strings are sourced from
// [https://support.google.com/webmasters/answer/1061943?hl=en]
// Feel free to add/edit definitions
// =================================
// Last updated: 20/03/2018