"publisher": {
"@type": "ProfessionalService",
"@id": "{{site.url}}/about.html",
"name": "{{ site.title}}",
"logo": {
"@type": "ImageObject",
"representativeOfPage": "False",
"width": {
"@type": "QuantitativeValue",
View .eleventy.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
const imageShortcode = require("./image"); | |
module.exports = function(eleventyConfig) { | |
eleventyConfig.addNunjucksShortcode("image", imageShortcode); | |
// ... + other eleventyConfig | |
}; |
View webmention-fragment.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
<! -- Webbmtions https://www.w3.org/TR/webmention/ --> | |
<article class="box post"> | |
<header> | |
<h3>Notify WebMention</h3> | |
</header> | |
<div class="responses" id="responses"> | |
<form class="webmention-form ui form" action="https://webmention.herokuapp.com/api/webmention" method="post"> | |
<div class="fields"> | |
<div class="twelve wide field"> | |
<label for="wurl">Have you written a <a href="https://indieweb.org/responses">Webmention response</a> to this? URL:</label> |
View publisher.md
View mainentity.md
"mainEntityofPage": {
"@type": "{{page.mainentity}}",
{% if page.wikidatas %}
"mentions": [
{% for item in page.wikidatas %}
{
"@type": "Thing",
"name": "{{ item.name }}",
"@id": "{{ item.url }}"
View wpshortcode.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
// Add Shortcode | |
function jsonlink( $atts ) { | |
// Attributes | |
$atts = shortcode_atts( | |
array( | |
'numberposts' => '', | |
), | |
$atts, | |
'relatedLink' |
View 2021-01-01-draft-template.md
---
layout: xxxxxxx
title: ""
crumbtitle: ""
categories: xxxx-xxxx
tags: xxx xxx
wikidata: ###
genre: "https://en.wikipedia.org/wiki/xxxxxxxx"
isbasedon: ["URL, "URL"]
View members.yml
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
member1: | |
birth_country: "United States of America" | |
birth_city: "Somewhere" | |
birth_region: CA | |
birth_zip: 11111 | |
birth_date: "YYYY-MM-DD" | |
education: "New Horizons Technology School" | |
image: "assets/images/main/denver-prophit-jr.png" | |
nationality: "United States of America" | |
name: "John Doe" |
View _capitalize_all.rb
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
require 'liquid' | |
require 'uri' | |
# Capitalize all words of the input | |
module Jekyll | |
module CapitalizeAll | |
def capitalize_all(words) | |
return words.split(' ').map(&:capitalize).join(' ') | |
end | |
end |
View articleJSON.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
{ | |
"@context": "https://schema.org", | |
"@type": "Article", | |
"@id": "#article", | |
"url": "{{ site.url }}{{ page.url }}", | |
"name": "{{ page.title }}", | |
"headline": "{{ page.title }}", | |
"genre": "{{ page.genre }}", | |
"keywords": {{ page.tags |replace: "-", " " | join: ", | capitalize_all | jsonify }}, | |
"description": "{{ page.excerpt | strip_newlines | strip | strip_html }}", |
View head.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
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="robots" content="index,follow"> | |
<meta name="msapplication-tap-highlight" content="no"> | |
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> | |
<meta name="description" content="{{page.excerpt}}"/> | |
{% include favicon.html %} | |
{% capture critical %} | |
{% include critical.scss %} |
NewerOlder