blob: 8fe3550a4c8c5f0d306bca822d5f09c76fe59fff [file] [log] [blame]
<div class="headerWithLink">
<h{{with .Get "level"}}{{.}}{{else}}2{{end}}>{{ .Get "header"}}</h2>
<p class="headerLink">
{{- if .Get "search" -}}
<a href="https://pkg.go.dev/search?q={{ .Get "search" | htmlEscape }}">{{with .Get "text"}}{{.}}{{else}}View More &gt;{{end}}</a>
{{- else -}}
<a href="{{ .Get "link"}}">{{with .Get "text"}}{{.}}{{else}}View More &gt;{{end}}</a>
{{- end -}}
</p>
</div>