add base pages

This commit is contained in:
jackyzha0
2021-07-18 11:54:00 -04:00
parent c01138a81c
commit ea69050587
22 changed files with 365 additions and 16 deletions

View File

@ -0,0 +1,2 @@
{{$trimmed := strings.TrimSuffix ".md" (.Destination | safeURL)}}
<a href="{{ if (hasPrefix $trimmed "/") }}{{ $trimmed }}{{ else }}{{ print "/" $trimmed }}{{ end }}" rel="noopener">{{ .Text | safeHTML }}</a>