Browse Source

fixing h-entry

master
jk 5 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" }} {{ define "main" }}
<article class="post h-entry entry"> <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> <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"> <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> </div>
{{ end }}
<div class="e-content">{{ .Content }}</div> <div class="e-content">{{ .Content }}</div>
{{ if eq .Type "article"}}
<div class="post-footer"> <div class="post-footer">
<div class="info"> <div class="info">
{{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }} {{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
@ -16,7 +16,7 @@
{{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }} {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
</div> </div>
</div> </div>
{{ end }}
{{ if eq .Type "article"}} {{ if eq .Type "article"}}
{{ if .Site.DisqusShortname -}} {{ if .Site.DisqusShortname -}}
<div id="fb_comments_container"> <div id="fb_comments_container">

1
themes/anatole/layouts/index.html

@ -4,6 +4,7 @@
<h1>Latest post</h1> <h1>Latest post</h1>
{{ range first 1 .Site.RegularPages }} {{ range first 1 .Site.RegularPages }}
<article class="h-entry entry"> <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> <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> <h4 class="decription"><a href="{{ .RelPermalink }}">{{ .Description }}</a></h4>
<div class="info"> <div class="info">