v1
This commit is contained in:
@@ -1,27 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<article itemscope itemtype="http://schema.org/Article" class="max-w-3xl mx-auto leading-relaxed">
|
||||
{{ if .IsPage }}
|
||||
<header class="flex flex-col meta">
|
||||
{{- partial "meta.html" . -}}
|
||||
<h1 itemprop="name" class="text-center text-3xl my-4 md:my-6">{{ .Title }}</h1>
|
||||
{{ if not .Params.disableMeta }}
|
||||
<h3 class="text-center text-xl">
|
||||
{{ with $.Site.Params.AuthorName }}
|
||||
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||
<span itemprop="name">{{ . }}</span>
|
||||
{{ end }}
|
||||
{{ if .Params.date }}
|
||||
{{ if $.Site.Params.AuthorName }} / {{ end }}
|
||||
<span itemprop="datePublished"
|
||||
content="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</span>
|
||||
{{ end }}
|
||||
</h3>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{ end }}
|
||||
{{ if not .IsHome }}
|
||||
<hr class="block my-10 mx-auto max-w-xs h-px border-t border-black">
|
||||
{{ end }}
|
||||
{{- partial "meta.html" . -}}
|
||||
<div itemprop="articleBody" class="content markdown">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user