Browse Source

h-card again

master
jk 5 years ago
parent
commit
cc32c0e84f
  1. 5
      layouts/_default/section.html
  2. 4
      themes/anatole/layouts/_default/single.html
  3. 4
      themes/anatole/layouts/index.html

5
layouts/_default/section.html

@ -34,9 +34,8 @@
{{range .Site.Data.response}} {{range .Site.Data.response}}
{{range .entries}} {{range .entries}}
<section data-post-type="{{ .posttype }}" data-post-id="{{ .slug }}"class="h-entry"> <section data-post-type="{{ .posttype }}" data-post-id="{{ .slug }}"class="h-entry">
<div class="p-author author" style="display:none;">
<a rel="author" class="p-name u-url u-uid p-author" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}</a>
<img class="u-photo" src="/images/profile.jpg"/>
<div class="author" style="display:none;">
<a rel="author" class="u-author" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
</div> </div>
<aside> <aside>
<article class="u-{{ .posttype }} h-cite"> <article class="u-{{ .posttype }} h-cite">

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

@ -1,7 +1,9 @@
{{ define "main" }} {{ define "main" }}
{{ if not (eq .Type "response")}} {{ if not (eq .Type "response")}}
<article class="post h-entry entry contents"> <article class="post h-entry entry contents">
<div class="{{.Type}}" data-post-type="{{.Type }}"><div class="p-author author" style="display:none;"><a rel="author" class="p-name u-url u-uid" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}</a><img class="u-photo" src="/images/profile.jpg" /></div>
<div class="author" style="display:none;">
<a rel="author" class="u-author" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
</div>
<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>
<aside> <aside>
{{ if eq .Type "article" }}<div class="info"> {{ if eq .Type "article" }}<div class="info">

4
themes/anatole/layouts/index.html

@ -5,7 +5,9 @@
{{ range first 1 .Site.RegularPages }} {{ range first 1 .Site.RegularPages }}
<article class="post h-entry entry contents"> <article class="post h-entry entry contents">
<div class="{{.Type}}" data-post-type="{{.Type }}"> <div class="{{.Type}}" data-post-type="{{.Type }}">
<div class="p-author author" style="display:none;"><a rel="author" class="p-name u-url u-uid" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}</a><img class="u-photo" src="/images/profile.jpg" /></div>
<div class="author" style="display:none;">
<a rel="author" class="u-author" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
</div>
<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>
<aside> <aside>
<div class="index_info"> <div class="index_info">