github.com/bcampbell/scrapeomat@v0.0.0-20220820232205-23e64141c89e/cmd/slurpserver/templates/art.html (about)

     1  {{define "body"}}
     2  {{with .Art}}
     3  <table>
     4    <tr><th>ID</th><td>{{.ID}}</td></tr>
     5    <tr><th>Headline</th><td>{{.Headline}}</td></tr>
     6    <tr><th>CanonicalURL</th><td><a href="{{.CanonicalURL}}">{{.CanonicalURL}}</a></td></tr>
     7    <tr><th>URLs</th><td>{{range .URLs}}<a href="{{.}}">{{.}}</a></br>{{end}}</td></tr>
     8    <tr><th>Publication</th><td>
     9      code: {{.Publication.Code}}<br/>
    10      name: {{.Publication.Name}}<br/>
    11      domain: {{.Publication.Domain}}
    12      </td></tr>
    13    <tr><th>Published</th><td>{{.Published}}</td></tr>
    14    <tr><th>Updated</th><td>{{.Updated}}</td></tr>
    15    <tr><th>Content</th><td>{{.Content}}</td></tr>
    16    <tr><th>Section</th><td>{{.Section}}</td></tr>
    17    <tr><th>Keywords</th><td>
    18        <ul>
    19          {{range .Keywords}}
    20          <li>{{.Name}}</li>
    21          {{end}}
    22        </ul>
    23    </td></tr>
    24    <tr><th>Authors</th><td>
    25        <ul>
    26          {{range .Authors}}
    27          <li>{{.Name}}</li>
    28          {{end}}
    29        </ul>
    30    </td></tr>
    31  </table>
    32  {{end}}
    33  {{end}}