Support photos in notes, fix bad microformat in post preview

This commit is contained in:
Pranav Karawale 2022-10-15 16:46:36 +05:30
parent aad43efe3e
commit f0a666e8c4
Signed by: pranav
GPG key ID: 1A551FFE981F09AB
2 changed files with 5 additions and 8 deletions

View file

@ -1,8 +1,5 @@
<div>
<p>{{ .Content }}</p>
<p><a href="{{ .Permalink }}">{{ .PublishDate }}
{{- if ne .PublishDate .Lastmod }}
; last updated {{ .Lastmod }}
{{- end }}
</a></p>
{{ partial "post-start" . }}
<section class="e-content">{{ .Content }}</section>
{{ partial "post-end" . }}
</div>

View file

@ -3,8 +3,8 @@
<article class="h-entry">
<section class="h-card">
<img class="u-photo" src="{{ $me.photo }}" height="48" width="48" alt="A close-up photo of my face." />
<a href="{{ .Site.BaseURL }}" class="u-name u-url">
<a href="{{ .Site.BaseURL }}" class="p-name u-url">
{{ $me.Name }}
</a>
</section>
{{- /* Continued in ./post-end.html */ -}}
{{- /* Continued in ./post-end.html */ -}}