Commit 1d31cdf8 authored by Kaushal Modi's avatar Kaushal Modi

Add h-entry markup #microformats2 #webmentions

parent 53165b18
{{ define "main" }}
<div class="post">
<h1 class="post-title">{{ .Title }}</h1>
<!-- http://microformats.org/wiki/h-entry -->
<div class="post h-entry">
<h1 class="post-title p-name">{{ .Title }}</h1>
{{ partial "date-maybe.html" . }}
{{ if not .Params.notoc }}
......@@ -16,14 +18,16 @@
<div class="content">
{{ with .Description }}
<div class="description">
<div class="description p-summary">
{{ . | markdownify }}
</div>
{{ end }}
{{ partial "series.html" . }}
{{ partial "headline-hash.html" .Content }}
<div class="e-content">
{{ partial "headline-hash.html" .Content }}
</div>
<!-- Print versions at the end of the post, if specified. -->
{{ with .Params.versions }}
......@@ -42,7 +46,7 @@
</div>
</div>
<div class="post-catlist right">
<div class="post-catlist right p-category">
{{ partial "post_categories.html" . }}
{{ partial "post_tags.html" . }}
</div>
......
{{ with .Date }}
{{ if (not (eq (dateFormat "2006-01-02" .) "0001-01-01")) }}
<span class="post-date">{{ dateFormat $.Site.Params.dateform . | safeHTML }}</span>
{{ end }}
{{ if (not .Date.IsZero) }}
<span class="post-date dt-published">{{ dateFormat ($.Param "dateform" | default "Mon Jan 2, 2006") .Date | safeHTML }}</span>
{{ end }}
......@@ -26,7 +26,7 @@
<div class="series">
<p>
<a href="" id="series"></a>
This is a post in the “<b>{{ $this_series }}</b>” series.
This is a post in the “<b class="p-category">{{ $this_series }}</b>” series.
</p>
<ul>
<!-- Calling .Pages function on the WeightedPages object will return all the nested pages. -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment