Add see-also shortcode

This commit is contained in:
2022-05-03 22:09:18 -05:00
parent 87a6da5c41
commit 2731d9795f
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<div class="see-also">
{{ with .Site.GetPage (.Get 0) }}
<p>SEE ALSO: <a href="{{ .Permalink }}">{{ .Title }}</a></p>
{{ else }}
{{ errorf "Page could not be found for see-also shortcode: %s" .Position }}
{{ end }}
</div>