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:
parent
2cf64bade9
commit
8a527895a3
2 changed files with 6 additions and 7 deletions
|
@ -15,7 +15,6 @@
|
||||||
{{ partial "processed-content" . -}}
|
{{ partial "processed-content" . -}}
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
<br>
|
|
||||||
<hr>
|
<hr>
|
||||||
<footer class="comment">
|
<footer class="comment">
|
||||||
{{ with .OutputFormats.Get "gemtext" -}}
|
{{ with .OutputFormats.Get "gemtext" -}}
|
||||||
|
@ -36,7 +35,7 @@
|
||||||
<li>
|
<li>
|
||||||
<time datetime="{{ dateFormat "2006-01-02 15:04:05Z07:00" $webmention.created_at }}">{{ dateFormat "2006-01-02" $webmention.created_at }}</time>
|
<time datetime="{{ dateFormat "2006-01-02 15:04:05Z07:00" $webmention.created_at }}">{{ dateFormat "2006-01-02" $webmention.created_at }}</time>
|
||||||
<br>
|
<br>
|
||||||
<a href="{{ $webmention.source }}">{{ $webmention.title }}</a>
|
<a href="{{ $webmention.source }}" rel="nofollow">{{ $webmention.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
<li><p>This post doesn't have any approved Webmentions yet.</p></li>
|
<li><p>This post doesn't have any approved Webmentions yet.</p></li>
|
||||||
|
@ -45,6 +44,4 @@
|
||||||
</section>
|
</section>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
|
||||||
<br>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
|
<hr>
|
||||||
<footer id="site-footer">
|
<footer id="site-footer">
|
||||||
{{ .Site.Params.copyright }}
|
<p>Copyright © {{now.Year}} Rohan Kumar · <a href="{{ .Site.Params.src }}">Website source code</a></p>
|
||||||
·
|
{{if .GitInfo -}}
|
||||||
<a href="{{ .Site.Params.src }}">Website source code</a>
|
<p>Site last rebuilt on {{now.Format "2006-01-02 15:04:05 -0700" }}</p>
|
||||||
|
{{- end}}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Reference in a new issue