content: remove package name from search results and fix error
Package name is remove from the search results, to reflect the updated
mocks.
The following error is fixed in content/static/search.tmpl:
search.tmpl:28:66: executing "main_content" at <$e.Type>: can't evaluate field Type in type string
{{range .Results}}
<div class="SearchSnippet">
<h2 class="SearchSnippet-header">
- {{.Name}} - <a href="/{{.PackagePath}}?v={{.Version}}{{if $query}}&q={{$query}}{{end}}">{{.PackagePath}}</a>
+ <a href="/{{.PackagePath}}?v={{.Version}}{{if $query}}&q={{$query}}{{end}}">{{.PackagePath}}</a>
</h2>
<p class="SearchSnippet-synopsis">{{.Synopsis}}</p>
<div class="SearchSnippet-subtext">
<b class="SearchSnippet-subtextTitle">Version:</b> {{.Version}}
<span class="SearchSnippet-subtextDivide">|</span>
<b class="SearchSnippet-subtextTitle">{{pluralize (len .Licenses) "License"}}:</b>
- {{range $i, $e := .Licenses -}}{{if $i}}, {{end}} {{$e.Type}} {{end}}
+ {{range $i, $e := .Licenses -}}{{if $i}}, {{end}} {{$e}} {{end}}
</div>
<div class="SearchSnippet-subtext">
<b class="SearchSnippet-subtextTitle">Imported by:</b> {{.NumImportedBy}}
