forked from shadowfacts/shadowfacts.net
More schema.org stuff
This commit is contained in:
parent
7b5212027c
commit
ce219d972f
|
@ -6,10 +6,10 @@
|
||||||
</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>
|
||||||
|
|
|
@ -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 %>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue