Skip to content

Commit

Permalink
Merge pull request #35 from rootwork/fix/2-indieweb-corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
rootwork authored Sep 30, 2022
2 parents 3152ded + 53d26c6 commit d58884e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hugo/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ <h2>{{ T "overview" }}</h2>
{{ .TableOfContents }}
</div>
{{ end }}

{{/* Summary for indieweb microformat */}}
{{- with partial "function/vars/getSummary" . -}}
<h3 class="hidden-all">Summary</h3>
<p class="hidden-all p-summary">{{ . }}</p>
<hr class="hidden-all" />
{{- end -}}


<div class="post_body e-content" itemprop="articleBody">
{{- .Content }}

Expand Down
3 changes: 3 additions & 0 deletions hugo/layouts/partials/post-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
>&nbsp;Edited on
{{ .Lastmod.Format (default "Jan 2, 2006" $.Site.Params.dateFormat) }}&nbsp;</span
>
<time class="hidden-all dt-updated">
{{ $getDate.updatedMicroformat -}}
</time>
{{- end }}
{{- end }}
{{- if $showReadTime }}
Expand Down

0 comments on commit d58884e

Please sign in to comment.