Skip to content

Commit

Permalink
refactor: strip out Microdata from layouts
Browse files Browse the repository at this point in the history
Forms part of the transition from Microdata to JSON-LD.

See academicpages#413
  • Loading branch information
gcushen committed Sep 9, 2019
1 parent e9a7925 commit c4b40fa
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="universal-wrapper">
{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
<div class="article-style">{{ . }}</div>
{{ end }}

{{ $paginator := .Paginate .Data.Pages }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/authors/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{/* If an account has not been created for this user, just display their name as the title. */}}
{{ if not .File }}
<div class="universal-wrapper pt-3">
<h1 itemprop="name">{{ .Title }}</h1>
<h1>{{ .Title }}</h1>
</div>
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/authors/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<div class="universal-wrapper">
{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
<div class="article-style">{{ . }}</div>
{{ end }}

<ul>
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/docs_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@

<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 docs-content" role="main">

<article class="article" itemscope itemtype="http://schema.org/Article">
<article class="article">

<div class="docs-article-container">
<h1 itemprop="name">{{ .Title }}</h1>
<h1>{{ .Title }}</h1>

<div class="article-style" itemprop="articleBody">
<div class="article-style">
{{ .Content }}
</div>

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/widgets/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="col-md-6 order-md-1 text-center text-md-left">
{{ end }}

<h1 class="hero-title" itemprop="headline">
<h1 class="hero-title">
{{ with $page.Title }}{{ . | markdownify }}{{ end }}
</h1>

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/widgets/slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{{ end }}
;">
<div class="container" style="text-align: {{$item.align | default "left"}};">
<h1 class="hero-title" itemprop="headline">
<h1 class="hero-title">
{{ with $item.title }}{{ . | markdownify | emojify }}{{ end }}
</h1>

Expand Down
4 changes: 2 additions & 2 deletions layouts/project/single.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{{- define "main" -}}

<article class="article article-project" itemscope itemtype="http://schema.org/Article">
<article class="article article-project">

{{ partial "page_header.html" . }}

<div class="article-container">

<div class="article-style" itemprop="articleBody">
<div class="article-style">
{{ .Content }}
</div>

Expand Down
2 changes: 1 addition & 1 deletion layouts/section/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="universal-wrapper">
{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
<div class="article-style">{{ . }}</div>
{{ end }}
<ul class="list-unstyled">
{{ if gt (len .Sections) 0}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/section/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="universal-wrapper">

{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
<div class="article-style">{{ . }}</div>
{{ end }}

{{ $paginator := .Paginate .Data.Pages }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/section/publication.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="col-lg-12">

{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
<div class="article-style">{{ . }}</div>
{{ end }}

{{/* Array of distinct years. */}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/section/talk.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="col-lg-12">

{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
<div class="article-style">{{ . }}</div>
{{ end }}

{{ range .Data.Pages.GroupByDate "2006" }}
Expand Down

0 comments on commit c4b40fa

Please sign in to comment.