Skip to content

Commit

Permalink
feat(post): add archive.is link for link posts (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigaloid authored Sep 5, 2024
1 parent 7a0ea1f commit 408ebe6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ <h1 class="post_title">
</a>
</li>
{% endif %}
{% if post.post_type == "link" %}
<li class="desktop_item"><a target="_blank" href="https://archive.is/latest/{{ post.media.url }}">archive.is</a></li>
<li class="mobile_item"><a target="_blank" href="https://archive.is/latest/{{ post.media.url }}">archive</a></li>
{% endif %}
{% call external_reddit_link(post.permalink) %}

{% if post.media.download_name != "" %}
Expand Down

0 comments on commit 408ebe6

Please sign in to comment.