mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-19 18:15:57 +00:00
refactor: strip out Microdata from layouts
Forms part of the transition from Microdata to JSON-LD. See #413
This commit is contained in:
1 parent
e9a7925152
commit
c4b40faefa
11 files changed
+14
-14
No files matched your search
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<div class="universal-wrapper">
|
<div class="universal-wrapper">
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
<div class="article-style">{{ . }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $paginator := .Paginate .Data.Pages }}
|
{{ $paginator := .Paginate .Data.Pages }}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
{{/* If an account has not been created for this user, just display their name as the title. */}}
|
{{/* If an account has not been created for this user, just display their name as the title. */}}
|
||||||
{{ if not .File }}
|
{{ if not .File }}
|
||||||
<div class="universal-wrapper pt-3">
|
<div class="universal-wrapper pt-3">
|
||||||
<h1 itemprop="name">{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<div class="universal-wrapper">
|
<div class="universal-wrapper">
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
<div class="article-style">{{ . }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
@@ -20,12 +20,12 @@
|
|||||||
|
|
||||||
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 docs-content" role="main">
|
<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">
|
<div class="docs-article-container">
|
||||||
<h1 itemprop="name">{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
|
||||||
<div class="article-style" itemprop="articleBody">
|
<div class="article-style">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<div class="col-md-6 order-md-1 text-center text-md-left">
|
<div class="col-md-6 order-md-1 text-center text-md-left">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<h1 class="hero-title" itemprop="headline">
|
<h1 class="hero-title">
|
||||||
{{ with $page.Title }}{{ . | markdownify }}{{ end }}
|
{{ with $page.Title }}{{ . | markdownify }}{{ end }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
;">
|
;">
|
||||||
<div class="container" style="text-align: {{$item.align | default "left"}};">
|
<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 }}
|
{{ with $item.title }}{{ . | markdownify | emojify }}{{ end }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
|
|
||||||
<article class="article article-project" itemscope itemtype="http://schema.org/Article">
|
<article class="article article-project">
|
||||||
|
|
||||||
{{ partial "page_header.html" . }}
|
{{ partial "page_header.html" . }}
|
||||||
|
|
||||||
<div class="article-container">
|
<div class="article-container">
|
||||||
|
|
||||||
<div class="article-style" itemprop="articleBody">
|
<div class="article-style">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<div class="universal-wrapper">
|
<div class="universal-wrapper">
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
<div class="article-style">{{ . }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
{{ if gt (len .Sections) 0}}
|
{{ if gt (len .Sections) 0}}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<div class="universal-wrapper">
|
<div class="universal-wrapper">
|
||||||
|
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
<div class="article-style">{{ . }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $paginator := .Paginate .Data.Pages }}
|
{{ $paginator := .Paginate .Data.Pages }}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
|
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
<div class="article-style">{{ . }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* Array of distinct years. */}}
|
{{/* Array of distinct years. */}}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
|
|
||||||
{{ with .Content }}
|
{{ with .Content }}
|
||||||
<div class="article-style" itemprop="articleBody">{{ . }}</div>
|
<div class="article-style">{{ . }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||||
|
|||||||
Reference in new issue
Block a user