{{define "result_item"}}
<article class="result">
  <div class="result_header">
    <a href="{{.URL}}" target="_blank" rel="noopener noreferrer">{{.SafeTitle}}</a>
  </div>
  <div class="result_url">
    <img class="result-favicon" src="https://www.google.com/s2/favicons?domain={{.URL | urlquery}}&sz=32" alt="" loading="lazy" onerror="this.style.display='none'">
    <a href="{{.URL}}" target="_blank" rel="noopener noreferrer">{{.URL}}</a>
    <span class="engine-badge">{{.Engine}}</span>
  </div>
  {{if .Content}}
  <p class="result_content">{{.SafeContent}}</p>
  {{end}}
</article>
{{end}}
