1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Improve footers for webmention

- Footer should contain date last built so people don't start scratching
  their heads wondering why webmentions aren't showing up
- Add rel="nofollow ugc" to webmention links.
This commit is contained in:
Rohan Kumar 2021-01-18 21:41:02 -08:00
parent 2cf64bade9
commit 8a527895a3
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 6 additions and 7 deletions

View file

@ -15,7 +15,6 @@
{{ partial "processed-content" . -}}
</section>
</article>
<br>
<hr>
<footer class="comment">
{{ with .OutputFormats.Get "gemtext" -}}
@ -36,7 +35,7 @@
<li>
<time datetime="{{ dateFormat "2006-01-02 15:04:05Z07:00" $webmention.created_at }}">{{ dateFormat "2006-01-02" $webmention.created_at }}</time>
<br>
<a href="{{ $webmention.source }}">{{ $webmention.title }}</a>
<a href="{{ $webmention.source }}" rel="nofollow">{{ $webmention.title }}</a>
</li>
{{ else -}}
<li><p>This post doesn't have any approved Webmentions yet.</p></li>
@ -45,6 +44,4 @@
</section>
</footer>
</div>
<hr>
<br>
{{ end }}

View file

@ -1,5 +1,7 @@
<hr>
<footer id="site-footer">
{{ .Site.Params.copyright }}
·
<a href="{{ .Site.Params.src }}">Website source code</a>
<p>Copyright © {{now.Year}} Rohan Kumar · <a href="{{ .Site.Params.src }}">Website source code</a></p>
{{if .GitInfo -}}
<p>Site last rebuilt on {{now.Format "2006-01-02 15:04:05 -0700" }}</p>
{{- end}}
</footer>