View schema-profilepage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "ProfilePage", | |
"dateCreated": "2019-12-23T12:34:00-05:00", | |
"dateModified": "2019-12-26T14:53:00-05:00", | |
"mainEntity": { | |
"@type": "Person", | |
"@id": "https://www.coywolf.news/jon-henshaw#Person", | |
"name": "Jon Henshaw", |
View rei-sponsored-pattern-matching.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
document.querySelectorAll('[rel="sponsored"]').forEach(item => { | |
item.addEventListener('click', event => { | |
let linkUrl = new URL(item.getAttribute('href'), window.location.href); | |
// Using the second argument to handle relative URLs | |
let currentHostname = window.location.hostname; | |
if (linkUrl.hostname !== currentHostname) { | |
// If the link's hostname is different from the current page's hostname | |
let domainParts = linkUrl.hostname.split('.'); | |
let domainName = domainParts.length > 1 ? domainParts[domainParts.length - 2] : domainParts[0]; |
View lazy-loading-image.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="https://domain.com/image.png" loading="lazy" alt="Image description"> |
View disallow-genai-bots.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-agent: GPTBot | |
Disallow: / | |
User-agent: CCBot | |
Disallow: / | |
User-agent: ChatGPT-User | |
Disallow: / | |
User-agent: Google-Extended | |
Disallow: / | |
User-agent: Omgilibot | |
Disallow: / |
View google-extended-folder.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-agent: Google-Extended | |
Disallow: /folder |
View google-extended-all.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-agent: Google-Extended | |
Disallow: / |
View rss-feed-link-example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="http://fetchrss.com/rss/6505e0642fa55245b10cfcb26505e36821be06797d443f92.xml"> |
View gravatar-alt-text.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If you use this Gravatar code in your WordPress templates | |
<?php echo get_avatar( get_the_author_meta( 'ID' ), 60); ?> | |
// Add this to functions.php to include ALT text with the image | |
function gravatar_alt($text) { | |
$alt = get_the_author_meta( 'display_name' ); | |
$text = str_replace('alt=\'\'', 'alt=\'Headshot for '.$alt.'\'',$text); | |
return $text; | |
} | |
add_filter('get_avatar','gravatar_alt'); |
View schema-person.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="application/ld+json"> | |
{ | |
"@context": "https://schema.org", | |
"@type": "Person", | |
"@id": "https://www.coywolf.news/jon-henshaw#Person", | |
"name": "Jon Henshaw", | |
"givenName": "Jonathan", | |
"familyName": "Henshaw", | |
"additionalName": "Michael", | |
"nationality":{ |
View close.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- JS for displaying and hiding "Close" icon --> | |
<script> | |
function navopen() { | |
var x = document.getElementById("close"); | |
if (x.style.display === "none") { | |
x.style.display = "block"; | |
} else { | |
x.style.display = "none"; | |
} | |
} |
NewerOlder