mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-12-22 19:02:18 +00:00
34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
{{ define "main" }}
|
|
{{- $ageDays := div (sub now.Unix .Date.Unix) 86400 -}}
|
|
<header class="content__header">
|
|
<h1>{{ .Title | markdownify }}</h1>
|
|
</header>
|
|
{{- with .Param "lastmod" -}}
|
|
{{- $ageDays = div (sub now.Unix .Unix) 86400 -}}
|
|
{{- end -}}
|
|
{{- if and (gt $ageDays 365) (not .Params.timeless) -}}
|
|
<br>
|
|
<div class="notice note">
|
|
<p class="first notice-title"><span class="icon-notice baseline"><svg><use href="#note-notice"></use></svg></span>Technology keeps moving but this post has not.</p>
|
|
What you're about to read hasn't been updated in more than a year. The information may be out of date. Let me know if you see anything that needs fixing.
|
|
</div>
|
|
{{- end -}}
|
|
<div class="content__body">
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
{{- $showComments := true }}
|
|
{{- if eq .Site.Params.comments false }}
|
|
{{- $showComments = false }}
|
|
{{- else if eq .Params.comments false }}
|
|
{{- $showComments = false }}
|
|
{{- end }}
|
|
{{- if ne $showComments false }}
|
|
<hr>
|
|
{{- if eq .Site.Params.analytics true }}
|
|
<span class="post_kudos">Enjoyed this post?<button class="tinylytics_kudos"></button></span>
|
|
{{- end }}
|
|
{{- partial "comments" . }}
|
|
{{- end }}
|
|
<footer class="content__footer"></footer>
|
|
{{ end }}
|