diff options
author | Alan Pearce | 2017-07-04 20:37:08 +0200 |
---|---|---|
committer | Alan Pearce | 2017-07-04 20:37:08 +0200 |
commit | 022af90cb3aa08e891639f3db47ad3bb7b47632a (patch) | |
tree | 40cad115562bb16bd0487ca3367849538fe7d537 /layouts | |
parent | 987cab567c5fc9bed00bf11b8693b44d40564e5e (diff) | |
download | hyde-022af90cb3aa08e891639f3db47ad3bb7b47632a.tar.lz hyde-022af90cb3aa08e891639f3db47ad3bb7b47632a.tar.zst hyde-022af90cb3aa08e891639f3db47ad3bb7b47632a.zip |
Remove schema.org markup
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 8 | ||||
-rw-r--r-- | layouts/_default/single.html | 12 | ||||
-rw-r--r-- | layouts/index.html | 8 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 12 |
4 files changed, 19 insertions, 21 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e401596..f6fad64 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,12 +1,12 @@ {{ partial "head.html" . }} - <body class="theme-base-0b layout-reverse" itemscope itemtype="http://schema.org/Blog"> + <body class="theme-base-0b layout-reverse"> <main class="content container" role="main"> <h1 class="page-title">{{ .Title }}</h1> <ul class="posts"> {{ range .Data.Pages }} - <li itemscope itemtype="http://schema.org/BlogPosting"> - <a class="post-title u-url" itemprop="url" href="{{ .Permalink | replaceRE "/$" "" }}"><span itemprop="name">{{ .Title }}<span></a> - <time class="post-date" itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> + <li> + <a class="post-title u-url" href="{{ .Permalink | replaceRE "/$" "" }}">{{ .Title }}</a> + <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> </li> {{ end }} </ul> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a3ecf61..390ecf0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,14 +1,14 @@ {{ partial "head.html" . }} - <body class="theme-base-0b layout-reverse h-entry" itemscope itemtype="http://schema.org/BlogPosting"> + <body class="theme-base-0b layout-reverse h-entry"> <main class="content container" role="main"> <article class="post"> <header> <a class="u-url" href="{{ .Permalink | replaceRE "/$" "" }}"> - <h1 class="post-title p-name" itemprop="name">{{ .Title }}</h1> + <h1 class="post-title p-name">{{ .Title }}</h1> </a> - <time class="post-date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}" itemprop="datePublished">{{ .Date.Format "Monday, 2 January 2006" }}</time> + <time class="post-date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> </header> - <main class="post-content e-content" itemprop="articleBody"> + <main class="post-content e-content"> {{ .Content }} </main> <footer class="footer"> @@ -24,9 +24,7 @@ <p> Tags: {{ range .Params.tags }} - <span itemprop="keywords"> - <a class="p-category" href="/tags/{{ . | urlize }}/">{{ . }}</a> - </span> + <a class="p-category" href="/tags/{{ . | urlize }}/">{{ . }}</a> {{ end }} </p> diff --git a/layouts/index.html b/layouts/index.html index 69f35fa..cdca9ae 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,13 +1,13 @@ {{ partial "head.html" . }} - <body class="theme-base-0b layout-reverse" itemscope itemtype="http://schema.org/Blog"> + <body class="theme-base-0b layout-reverse"> <main class="content container" role="main"> <section class="recent"> <h2>Recent Posts</h2> <ul class="posts"> {{ range first 10 .Data.Pages }} - <li itemscope itemtype="http://schema.org/BlogPosting"> - <a class="post-title" itemprop="url" href="{{ .RelPermalink | replaceRE "/$" "" }}"><span itemprop="name">{{ .Title }}</span></a> - <time class="post-date" itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> + <li> + <a class="post-title" href="{{ .RelPermalink | replaceRE "/$" "" }}">{{ .Title }}</a> + <time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> </li> {{ end }} </ul> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index f9a9f21..51e68c6 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,5 +1,5 @@ <aside class="sidebar container"> - <header class="sidebar-about h-card vcard p-author" itemprop="author" itemscope itemtype="http://schema.org/Person"> + <header class="sidebar-about h-card vcard p-author"> {{ if (isset .Site.Author "image") }} <a class="u-url u-uid" href="{{ .Site.BaseURL }}"> <img class="u-photo" src="{{ .Site.Author.image }}" width=128 height=128 /> @@ -7,9 +7,9 @@ {{ end }} {{ if eq .Title .Site.Title }} - <h1 class="site-title u-name fn" itemprop="name">{{ .Site.Title }}</h1> + <h1 class="site-title u-name fn">{{ .Site.Title }}</h1> {{ else }} - <span class="site-title u-name fn" itemprop="name">{{ .Site.Title }}</span> + <span class="site-title u-name fn">{{ .Site.Title }}</span> {{ end }} <p class="lead p-note"> @@ -19,7 +19,7 @@ <nav> <ul class="sidebar-nav"> {{ range .Site.Menus.main }} - <li><a href="{{.URL}}" class="u-url url" itemprop="url"> {{ .Name }} </a></li> + <li><a href="{{.URL}}" class="u-url url"> {{ .Name }} </a></li> {{end}} </ul> </nav> @@ -32,7 +32,7 @@ {{ if hasPrefix .URL "mailto:" }} <a href="{{ .URL }}" class="u-email email" rel="me">{{ .Name }}</a> {{ else }} - <a href="{{ .URL }}" itemprop="url" rel="me">{{ .Name }}</a> + <a href="{{ .URL }}" rel="me">{{ .Name }}</a> {{ end }} </li> {{ end }} @@ -41,6 +41,6 @@ </header> <footer> - Licensed under a <a rel="license" itemprop="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>. + Licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>. </footer> </aside> |