Skip to content

Commit

Permalink
v2: target="_blank" for external links. #318
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon24 committed Jan 16, 2025
1 parent 84eedab commit 60d1e83
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/reader/_app/v2/templates/v2/entries.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,15 @@

<h2 class="h5 mb-1" style="font-size: 1.125rem">
<a class="text-decoration-none" href="{{ url_for('reader.entry', feed=entry.feed.url, entry=entry.id) }}">
{{ (entry.title or 'untitled') | striptags | truncate(95) }}

{#- NOTE: there must be no whitespace between the last word and the icon -#}
{#- TODO: aria stuff -#}
{%- if entry.link -%}
<a class="mx-2 small text-nowrap" href="{{ entry.link }}">{#
#}<i class="bi bi-box-arrow-up-right small"></i>
</a>
{% endif %}

{{- (entry.title or 'untitled') | striptags | truncate(95) -}}
</a>
{#- NOTE: there must be no whitespace between the last word and the icon -#}
{#- TODO: aria stuff -#}
{%- if entry.link -%}
<a class="mx-2 small text-nowrap" href="{{ entry.link }}" target="_blank">{#
#}<i class="bi bi-box-arrow-up-right small"></i>{#
#}</a>
{%- endif %}
</h2>

{% set summary = entry.get_content(prefer_summary=True).value | striptags | trim %}
Expand Down

0 comments on commit 60d1e83

Please sign in to comment.