Browse Source

adding h-feed

master
jk 5 years ago
parent
commit
c7ef1ee073
  1. 2
      layouts/_default/section.html
  2. 2
      themes/anatole/layouts/index.html

2
layouts/_default/section.html

@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
<main> <main>
<div class="contents">
<div class="contents h-feed">
<span id="pagination-top">{{ partial "pagination.html" . }}</span> <span id="pagination-top">{{ partial "pagination.html" . }}</span>
{{ range .Paginator.Pages}} {{ range .Paginator.Pages}}
{{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="h-entry {{.Type }}"> {{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="h-entry {{.Type }}">

2
themes/anatole/layouts/index.html

@ -1,6 +1,6 @@
{{ define "main" }} {{ define "main" }}
<div class="about">
<div class="about h-feed">
<h1>Latest post</h1> <h1>Latest post</h1>
{{ range (first 1 (where .Site.RegularPages "Type" "!=" "response")) }} {{ range (first 1 (where .Site.RegularPages "Type" "!=" "response")) }}
<article class="post h-entry entry contents"> <article class="post h-entry entry contents">