updated for microformats2
This commit is contained in:
13
layouts/articles/list.html
Normal file
13
layouts/articles/list.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ define "main" }}
|
||||
<section class="h-feed">
|
||||
<h2>Articles</h2>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li class="h-entry">
|
||||
<a href="{{ .RelPermalink }}" class="p-name u-url">{{ .Title }}</a>
|
||||
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
9
layouts/articles/single.html
Normal file
9
layouts/articles/single.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ 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>
|
||||
<div class="e-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
{{ end }}
|
Reference in New Issue
Block a user