adds shortcode for manual pages links

This commit is contained in:
Dominic Reich 2024-04-28 11:14:49 +02:00
parent 7abf1c0696
commit 77994d5ebb
Signed by: dominic
GPG key ID: BC9D6AE1A3BE169A

View file

@ -0,0 +1,5 @@
{{- $page := .Get 0 | default "man" }}
{{- $section := .Get 1 | default "1" }}
<a href="https://www.man.page/{{ $section }}/{{ $page }}" target="_blank" rel="noreferrer">{{ $page }}({{ $section }})</a>