add hiddenPage param

with this param set to true, every effort is made to make the page 'undiscoverable'
This commit is contained in:
Aniket Teredesai
2023-04-07 13:49:54 +05:30
parent cf94a9976d
commit 6e1b938d43
7 changed files with 15 additions and 10 deletions

View File

@@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}" {{ with .Title }}title="{{ . }}"{{ end }} {{ if strings.HasPrefix .Destination "http" | and (.Page.Params.hiddenPage | in (slice true "true")) }}target="_blank" rel="nofollow noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>