2020-01-15 22:07:43 -05:00
|
|
|
{{ define "main"}}
|
2022-05-08 18:02:35 -04:00
|
|
|
{{ .Scratch.Set "customTitleHeaderSet" true }}
|
|
|
|
{{ .Scratch.Set "customTitleHeader" "Blog" }}
|
2023-09-26 17:45:18 -04:00
|
|
|
{{ .Scratch.Set "customTitleHeaderLink" "/blog/" }}
|
2022-05-08 18:02:35 -04:00
|
|
|
{{ partial "header.html" . }}
|
|
|
|
<main>
|
2022-02-15 01:13:11 -05:00
|
|
|
<article class="h-entry">
|
2022-05-16 17:23:55 -04:00
|
|
|
<h1 class='title p-name'>{{ .Title }}</h1>
|
2022-05-08 18:02:35 -04:00
|
|
|
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
|
2022-05-16 17:23:55 -04:00
|
|
|
<div style="display: none;" rel="author" class="h-card p-author">
|
2023-09-26 16:30:27 -04:00
|
|
|
{{ $profile_image := resources.Get (printf "img/%s" .Site.Params.avatar) }}
|
|
|
|
{{ $profile_width := 75 }}
|
|
|
|
{{ $profile_image := $profile_image.Resize (printf "%dx webp q75" $profile_width) }}
|
|
|
|
<img class="u-photo" width="{{ $profile_width }}" height="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}"/>
|
2022-05-16 17:23:55 -04:00
|
|
|
<span > {{ .Site.Params.Author }}</span>
|
|
|
|
</div>
|
2022-05-08 18:02:35 -04:00
|
|
|
{{ .Scratch.Set "beforeDateString" "Published on "}}
|
|
|
|
{{ partial "date.html" . }}
|
|
|
|
{{ partial "reading_time.html" . }}
|
2022-05-08 18:06:32 -04:00
|
|
|
{{ partial "tags/page.html" . }}
|
2022-05-08 18:02:35 -04:00
|
|
|
<!-- content -->
|
|
|
|
<div class="e-content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
2022-02-15 01:13:11 -05:00
|
|
|
</article>
|
2023-08-14 21:35:48 -04:00
|
|
|
{{ partial "sharepost.html" . }}
|
2023-01-03 21:04:24 -05:00
|
|
|
<a href='mailto:{{ .Site.Params.email }}?subject=Re: "{{ .Title }}"' class="reply-button">Reply via Email</a>
|
2022-06-02 20:22:35 -04:00
|
|
|
|
2022-05-08 18:02:35 -04:00
|
|
|
{{ partial "webmentions.html" . }}
|
|
|
|
</main>
|
|
|
|
<!-- Metadata -->
|
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
|
|
|
"@context": "https://schema.org",
|
|
|
|
"@type": "NewsArticle",
|
|
|
|
"headline": "{{ .Title }}",
|
|
|
|
"image": [
|
2022-12-01 23:31:17 -05:00
|
|
|
"{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}"
|
2022-05-08 18:02:35 -04:00
|
|
|
],
|
|
|
|
"datePublished": "{{ .Date.Format "2006-01-02" }}",
|
|
|
|
"author": [{
|
|
|
|
"@type": "Person",
|
|
|
|
"name": "{{ .Site.Params.Author }}",
|
|
|
|
"url": "{{ .Site.BaseURL }}",
|
|
|
|
"email": "mailto://{{ .Site.Params.email }}",
|
2022-12-01 23:31:17 -05:00
|
|
|
"image": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}"
|
2022-05-08 18:02:35 -04:00
|
|
|
}]
|
|
|
|
}
|
|
|
|
</script>
|
2020-01-15 22:07:43 -05:00
|
|
|
{{ end }}
|