More schema.org stuff

This commit is contained in:
Shadowfacts 2019-01-04 18:24:16 -05:00
parent 7b5212027c
commit ce219d972f
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
3 changed files with 7 additions and 7 deletions

View File

@ -5,11 +5,11 @@
<time itemprop="datePublished" datetime="<%= metadata.date.toISOString() %>"><%= formatted %></time> <time itemprop="datePublished" datetime="<%= metadata.date.toISOString() %>"><%= formatted %></time>
</span> </span>
<% if (metadata.category) { %> <% if (metadata.category) { %>
in in
<span itemprop="articleSection"><a href="/<%= metadata.category %>/"><%= metadata.category %></a></span> <span itemprop="articleSection"><a href="/<%= metadata.category %>/" rel="category"><%= metadata.category %></a></span>
<% } else if (metadata.series) { %> <% } else if (metadata.series) { %>
in in
<span itemprop="articleSection"><a href="/tutorials/<%= metadata.series %>"><%= metadata.seriesName %></a></span> <span itemprop="articleSection"><a href="/tutorials/<%= metadata.series %>" rel="category"><%= metadata.seriesName %></a></span>
<% } %> <% } %>
by by
<span itemprop="author">Shadowfacts</span> <span itemprop="author">Shadowfacts</span>

View File

@ -3,9 +3,9 @@ metadata.layout = "default.html.ejs"
``` ```
<div class="main"> <div class="main">
<article itemscope itemtype="https://schema.org/BlogPosting"> <article itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<meta itemprop="mainEntityOfPage" content="https://shadowfacts.net<%= metadata.permalink %>"> <meta itemprop="mainEntityOfPage" content="https://shadowfacts.net<%= metadata.permalink %>">
<h1 class="article-title" itemprop="headline"><%= metadata.title %></h1> <h1 class="article-title" itemprop="name headline"><%= metadata.title %></h1>
<%- include("../includes/article-meta.html.ejs", { metadata }) %> <%- include("../includes/article-meta.html.ejs", { metadata }) %>
<div class="article-content" itemprop="articleBody"> <div class="article-content" itemprop="articleBody">
<%- content %> <%- content %>

View File

@ -43,7 +43,7 @@
<link rel="stylesheet" href="/css/light.css"> <link rel="stylesheet" href="/css/light.css">
</noscript> </noscript>
</head> </head>
<body> <body itemscope itemtype="https://schema.org/Blog">
<header class="site-header"> <header class="site-header">
<div class="container"> <div class="container">
<h1 class="site-title"><a href="/" class="fancy-link">Shadowfacts</a></h1> <h1 class="site-title"><a href="/" class="fancy-link">Shadowfacts</a></h1>