Commit ad9747ae authored by Jamie Tanna's avatar Jamie Tanna

Merge branch 'feature/h-entry' into 'fork'

Wrap blog post content in `h-entry` markup for Microformats parsers

See merge request !32
parents f195274c 69bd6d6f
......@@ -153,3 +153,7 @@ footer {
font-family: $monospaced;
}
}
.hidden {
display: none;
}
<h1 class="post-title">{{ .Title | markdownify }}</h1>
<h1 class="p-name post-title">{{ .Title | markdownify }}</h1>
<div class="post-line"></div>
\ No newline at end of file
......@@ -2,59 +2,67 @@
<main>
<a name="top"></a>
<div class="post">
{{ partial "single/post-info.html" . }}
{{ partial "single/title.html" . }}
{{ partial "single/table-of-contents.html" . }}
<div class="h-entry">
<div class="post">
{{ partial "single/post-info.html" . }}
{{ partial "single/title.html" . }}
{{ partial "single/table-of-contents.html" . }}
{{ partial "single/header.html" . }}
{{ partial "single/header.html" . }}
{{ .Content }}
<div class="e-content">
{{ .Content }}
</div>
{{ partial "single/footer.html" . }}
</div>
{{ partial "single/footer.html" . }}
</div>
<div class="post-details">
<p>Written by <strong>{{ .Site.Params.author }}</strong> on <strong>{{ dateFormat "02 January 2006" .PublishDate }}</strong>
{{- if .GitInfo -}}
{{- if .GitInfo.AuthorDate -}}
{{- if ne .PublishDate .GitInfo.AuthorDate -}}
, and last updated on <strong><a href="https://gitlab.com/jamietanna/jvt.me/commit/{{ .GitInfo.Hash }}">{{ dateFormat "02 January 2006" .GitInfo.AuthorDate }}</a></strong>
{{- end -}}.
{{- end -}}
{{- end -}}
</p>
{{ $licenseCode := index $.Site.Data.licenses .Params.License_Code }}
{{ $licenseProse := index $.Site.Data.licenses .Params.License_Prose }}
<div class="post-details">
<div class="hidden">
<p>This post's permalink is <a class="u-url" href="{{ .Site.Params.LiveSiteUrl }}{{ .URL }}">{{ .Site.Params.LiveSiteUrl }}{{ .URL }}</a> and has the following summary:</p>.
<blockquote class="p-summary">{{ .Description }}</blockquote>
</div>
<p>Written by <strong>{{ .Site.Params.author }}</strong> on <strong><time class="dt-published" datetime="{{ .PublishDate }}">{{ dateFormat "02 January 2006" .PublishDate }}</time></strong>
{{- if .GitInfo -}}
{{- if .GitInfo.AuthorDate -}}
{{- if ne .PublishDate .GitInfo.AuthorDate -}}
, and last updated on <strong><a href="https://gitlab.com/jamietanna/jvt.me/commit/{{ .GitInfo.Hash }}"><time class="dt-updated" datetime="{{ .GitInfo.AuthorDate }}">{{ dateFormat "02 January 2006" .GitInfo.AuthorDate }}</time></a></strong>
{{- end -}}.
{{- end -}}
{{- end -}}
</p>
{{ $licenseCode := index $.Site.Data.licenses .Params.License_Code }}
{{ $licenseProse := index $.Site.Data.licenses .Params.License_Prose }}
<p>Content for this article is shared under the terms of the <a href="{{ index $licenseProse.seeAlso 0 }}">{{ $licenseProse.name }}</a>, and code is shared under the <a href="{{ index $licenseCode.seeAlso 0 }}">{{ $licenseCode.name }}</a>.
</p>
<p>Content for this article is shared under the terms of the <a href="{{ index $licenseProse.seeAlso 0 }}">{{ $licenseProse.name }}</a>, and code is shared under the <a href="{{ index $licenseCode.seeAlso 0 }}">{{ $licenseCode.name }}</a>.
</p>
<p>Categories:</p>
<ul>
{{ range .Params.Categories }}
<li> <a href="/posts/categories/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
<p>Categories:</p>
<ul>
{{ range .Params.Categories }}
<li> <a href="/posts/categories/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
<p>Tags:</p>
<ul>
{{ range .Params.Tags }}
<li> <a href="/posts/tags/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
<p>Tags:</p>
<ul>
{{ range .Params.Tags }}
<li> <a href="/posts/tags/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<p>Other posts you may be interested in:</p>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></li>
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<p>Other posts you may be interested in:</p>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></li>
{{ end }}
</ul>
{{ end }}
</ul>
{{ end }}
{{ partial "webmention.html" . }}
{{ partial "webmention.html" . }}
</div>
</div>
<div class="pagination">
......
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