diff options
author | 2020-10-31 18:34:56 -0700 | |
---|---|---|
committer | 2020-10-31 18:41:13 -0700 | |
commit | 2249de439e68bde8de9c3ec603a1b1d94b9c143a (patch) | |
tree | 50587f7f326c3d769eafda08a85842691bc66278 /template/html | |
parent | 4f358aa0f3b1299378d677b02d36392e76848966 (diff) | |
download | v2-2249de439e68bde8de9c3ec603a1b1d94b9c143a.tar.gz v2-2249de439e68bde8de9c3ec603a1b1d94b9c143a.tar.zst v2-2249de439e68bde8de9c3ec603a1b1d94b9c143a.zip |
Rename original link to be more explicit
Diffstat (limited to 'template/html')
-rw-r--r-- | template/html/common/icons.html | 2 | ||||
-rw-r--r-- | template/html/common/item_meta.html | 2 | ||||
-rw-r--r-- | template/html/entry.html | 7 |
3 files changed, 9 insertions, 2 deletions
diff --git a/template/html/common/icons.html b/template/html/common/icons.html index 703e9622..bf38b715 100644 --- a/template/html/common/icons.html +++ b/template/html/common/icons.html @@ -78,7 +78,7 @@ SOFTWARE. <line x1="16" y1="12" x2="16" y2="12.01" /> </svg> {{ end }} -{{ define "icon_original" }} +{{ define "icon_external_link" }} <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-external-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z"/> <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" /> diff --git a/template/html/common/item_meta.html b/template/html/common/item_meta.html index e245c61b..c31ea955 100644 --- a/template/html/common/item_meta.html +++ b/template/html/common/item_meta.html @@ -58,7 +58,7 @@ target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" - data-original-link="true">{{ template "icon_original" }}<span class="icon-label">{{ t "entry.original.label" }}</span></a> + data-original-link="true">{{ template "icon_external_link" }}<span class="icon-label">{{ t "entry.external_link.label" }}</span></a> </li> {{ if .entry.CommentsURL }} <li> diff --git a/template/html/entry.html b/template/html/entry.html index 84c81a3c..f3ecfd20 100644 --- a/template/html/entry.html +++ b/template/html/entry.html @@ -56,6 +56,13 @@ {{ end }} </li> <li> + <a href="{{ .entry.URL | safeURL }}" + target="_blank" + rel="noopener noreferrer" + referrerpolicy="no-referrer" + data-original-link="true">{{ template "icon_external_link" }}<span class="icon-label">{{ t "entry.external_link.label" }}</span></a> + </li> + <li> <a href="#" title="{{ t "entry.scraper.title" }}" data-fetch-content-entry="true" |