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>
</span>
<% if (metadata.category) { %>
in
<span itemprop="articleSection"><a href="/<%= metadata.category %>/"><%= metadata.category %></a></span>
in
<span itemprop="articleSection"><a href="/<%= metadata.category %>/" rel="category"><%= metadata.category %></a></span>
<% } else if (metadata.series) { %>
in
<span itemprop="articleSection"><a href="/tutorials/<%= metadata.series %>"><%= metadata.seriesName %></a></span>
in
<span itemprop="articleSection"><a href="/tutorials/<%= metadata.series %>" rel="category"><%= metadata.seriesName %></a></span>
<% } %>
by
<span itemprop="author">Shadowfacts</span>

View File

@ -3,9 +3,9 @@ metadata.layout = "default.html.ejs"
```
<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 %>">
<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 }) %>
<div class="article-content" itemprop="articleBody">
<%- content %>

View File

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