updated for microformats2
This commit is contained in:
14
layouts/photos/list.html
Normal file
14
layouts/photos/list.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{ define "main" }}
|
||||
<section class="h-feed">
|
||||
<h2>Photos</h2>
|
||||
<div class="photo-grid">
|
||||
{{ range .Pages }}
|
||||
<figure class="h-entry">
|
||||
<img src="{{ .Params.image }}" alt="{{ .Title }}" class="u-photo">
|
||||
<figcaption class="p-name">{{ .Title }}</figcaption>
|
||||
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
|
||||
</figure>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
10
layouts/photos/single.html
Normal file
10
layouts/photos/single.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ define "main" }}
|
||||
<article class="h-entry">
|
||||
<h1 class="p-name">{{ .Title }}</h1>
|
||||
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
|
||||
<img src="{{ .Params.image }}" alt="{{ .Title }}" class="u-photo">
|
||||
<div class="e-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user