Browse Source

fixing h-entry

master
jk 4 years ago
parent
commit
97e8e21c4d
  1. 12
      themes/anatole/layouts/_default/single.html
  2. 1
      themes/anatole/layouts/index.html

12
themes/anatole/layouts/_default/single.html

@ -1,14 +1,14 @@
{{ define "main" }}
<article class="post h-entry entry">
<div class="post-content">{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="post-title p-name entry-title">{{ .Title }}</h3>
{{ if eq .Type "article"}}
<div class="info">
<i class="fa fa-sun"></i><span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
<i class="fa fa-clock"></i><span class="reading-time">{{ .ReadingTime }}-minute read</span>
<a rel="author" class="p-author h-card" href="{{ .RelPermalink }}" style="display:none;">{{ .Author }}</a>
<i class="fa fa-sun"></i><a class="u-url" href="{{ .RelPermalink }}"><span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span></a>
{{ if eq .Type "article" }}<i class="fa fa-clock"></i><span class="reading-time">{{ .ReadingTime }}-minute read</span>{{end}}
</div>
{{ end }}
<div class="e-content">{{ .Content }}</div>
{{ if eq .Type "article"}}
<div class="post-footer">
<div class="info">
{{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
@ -16,7 +16,7 @@
{{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
</div>
</div>
{{ end }}
{{ if eq .Type "article"}}
{{ if .Site.DisqusShortname -}}
<div id="fb_comments_container">

1
themes/anatole/layouts/index.html

@ -4,6 +4,7 @@
<h1>Latest post</h1>
{{ range first 1 .Site.RegularPages }}
<article class="h-entry entry">
<a rel="author" class="p-author h-card" href="{{ .RelPermalink }}" style="display:none;">{{ .Author }}</a>
<h3 class="post-title p-name entry-title"><a class="u-url" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
<h4 class="decription"><a href="{{ .RelPermalink }}">{{ .Description }}</a></h4>
<div class="info">