last edited partial

This commit is contained in:
Aravinth Manivannan 2021-05-27 19:15:04 +05:30
parent 0226cb96bc
commit fd4d238755
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
7 changed files with 11 additions and 4 deletions

View File

@ -2,11 +2,11 @@ baseurl = "/"
disableAliases = true
disableHugoGeneratorInject = true
enableEmoji = true
enableGitInfo = false
enableGitInfo = true
enableRobotsTXT = true
languageCode = "en-US"
paginate = 7
rssLimit = 10
rssLimit = 100
# add redirects/headers
[outputs]

View File

@ -2,8 +2,8 @@
title: "Donate"
description: "Donate to mCaptcha"
date: 2021-05-27
lastmod: 2021-05-27
draft: false
lastEdited: true
---
mCaptcha is a small operation that is self-funded. At the time of

View File

@ -5,6 +5,7 @@ date: 2021-05-26
lastmod: 2021-05-26
draft: false
images: []
lastEdited: true
---
**TLDR**: We do not use cookies, we do not collect any personal data and

View File

@ -7,6 +7,7 @@ draft: false
identifiers: "security"
layout: "security"
toc: true
lastEdited: true
---
Security is at the heart of mCaptcha. If you find any discrepancies in

View File

@ -20,6 +20,9 @@
</nav>
{{ end }}
<h1>{{ .Title }}</h1>
{{ if .Params.lastEdited -}}
{{ partial "main/last-edited.html" . -}}
{{ end -}}
<p class="lead">{{ .Params.lead | safeHTML }}</p>
{{ partial "main/headline-hash.html" .Content }}
{{ if .Site.Params.editPage -}}

View File

@ -1 +1,2 @@
<p><small>Posted {{ .PublishDate.Format "January 2, 2006" }} by {{ if .Params.contributors -}}{{ range $index, $contributor := .Params.contributors }}{{ if gt $index 0 }} and {{ end }}<a class="stretched-link position-relative" href="{{ "/contributors/" | absURL }}{{ . | urlize }}/">{{ . }}</a>{{ end -}}{{ end -}}&nbsp;&hyphen;&nbsp;<strong>{{ .ReadingTime -}}&nbsp;min read</strong></small><p>
<p><small>Posted {{ .PublishDate.Format "January 2, 2006" }} by {{ if .Params.contributors -}}{{ range $index, $contributor := .Params.contributors }}{{ if gt $index 0 }} and {{ end }}<a class="stretched-link position-relative" href="{{ "/contributors/" | absURL }}{{ . | urlize }}/">{{ . }}</a>{{ end -}}{{ end -}}&nbsp;&hyphen;&nbsp;<strong>{{ .ReadingTime -}}&nbsp;min read</strong></small><p>
{{ partial "main/last-edited.html" . -}}

View File

@ -0,0 +1 @@
<p><small>Last Edited {{ .Lastmod.Format "January 2, 2006" }}</small><p>