Skip to content

Commit

Permalink
exporters/html_table: add a column displaying a link to a local archi…
Browse files Browse the repository at this point in the history
…ve of the page, if it exists (as generated by processors/web_archiver)
  • Loading branch information
nodiscc committed Jul 26, 2023
1 parent 31688f0 commit 1e0d384
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hecat/exporters/html_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
<thead>
<tr>
<td>Title</td>
<td></td>
<td class="date-column">Date</td>
<td>Tags</td>
</tr>
Expand All @@ -166,6 +167,7 @@
<td><a href='{{ item['url'] }}'>{{ item['title'] }}</a>
{% if item['description'] is defined and item['description'] %}<br/>{% if description_format == 'details' %}<details><summary></summary>{% elif description_format == 'paragraph' %}<p>{% endif %}{{ jinja_markdown(item['description']) }}{% if description_format == 'details' %}</details>{% elif description_format == 'paragraph' %}</p>{% endif %}{% endif %}
</td>
<td>{% if item['archive_path'] is defined %}<a href="{{ item['archive_path'] }}">▣</a>{% endif %}</td>
<td>{{ simple_datetime(item.created) }}</td>
<td><code>@{{ '</code> <code>@'.join(item['tags']) }}</code></td>
<tr/>
Expand Down

0 comments on commit 1e0d384

Please sign in to comment.