|
@@ -45,7 +45,7 @@
|
|
|
<section class="entry" data-id="{{ .entry.ID }}" aria-labelledby="page-header-title">
|
|
<section class="entry" data-id="{{ .entry.ID }}" aria-labelledby="page-header-title">
|
|
|
<header class="entry-header">
|
|
<header class="entry-header">
|
|
|
<h1 id="page-header-title" dir="auto">
|
|
<h1 id="page-header-title" dir="auto">
|
|
|
- <a href="{{ .entry.URL | safeURL }}" {{ if $.user.OpenExternalLinksInNewTab }}target="_blank"{{ else }}rel="noopener"{{ end }}>{{ .entry.Title }}</a>
|
|
|
|
|
|
|
+ <a href="{{ .entry.URL | untrustedURL }}" {{ if $.user.OpenExternalLinksInNewTab }}target="_blank"{{ else }}rel="noopener"{{ end }}>{{ .entry.Title }}</a>
|
|
|
</h1>
|
|
</h1>
|
|
|
{{ if .user }}
|
|
{{ if .user }}
|
|
|
<div class="entry-actions">
|
|
<div class="entry-actions">
|
|
@@ -127,7 +127,7 @@
|
|
|
</li>
|
|
</li>
|
|
|
{{ if .entry.CommentsURL }}
|
|
{{ if .entry.CommentsURL }}
|
|
|
<li>
|
|
<li>
|
|
|
- <a href="{{ .entry.CommentsURL | safeURL }}"
|
|
|
|
|
|
|
+ <a href="{{ .entry.CommentsURL }}"
|
|
|
class="page-link"
|
|
class="page-link"
|
|
|
title="{{ t "entry.comments.title" }}"
|
|
title="{{ t "entry.comments.title" }}"
|
|
|
{{ if $.user.OpenExternalLinksInNewTab }}target="_blank"{{ else }}rel="noopener"{{ end }}
|
|
{{ if $.user.OpenExternalLinksInNewTab }}target="_blank"{{ else }}rel="noopener"{{ end }}
|
|
@@ -146,7 +146,7 @@
|
|
|
{{ if .user }}
|
|
{{ if .user }}
|
|
|
<a href="{{ routePath "/feed/%d/entries" .entry.Feed.ID }}">{{ .entry.Feed.Title }}</a>
|
|
<a href="{{ routePath "/feed/%d/entries" .entry.Feed.ID }}">{{ .entry.Feed.Title }}</a>
|
|
|
{{ else }}
|
|
{{ else }}
|
|
|
- <a href="{{ .entry.Feed.SiteURL | safeURL }}">{{ .entry.Feed.Title }}</a>
|
|
|
|
|
|
|
+ <a href="{{ .entry.Feed.SiteURL }}">{{ .entry.Feed.Title }}</a>
|
|
|
{{ end }}
|
|
{{ end }}
|
|
|
</span>
|
|
</span>
|
|
|
{{ if .entry.Author }}
|
|
{{ if .entry.Author }}
|
|
@@ -206,7 +206,7 @@
|
|
|
{{ end }}
|
|
{{ end }}
|
|
|
<div class="entry-external-link">
|
|
<div class="entry-external-link">
|
|
|
<a
|
|
<a
|
|
|
- href="{{ .entry.URL | safeURL }}"
|
|
|
|
|
|
|
+ href="{{ .entry.URL | untrustedURL }}"
|
|
|
{{ if $.user.OpenExternalLinksInNewTab }}target="_blank"{{ else }}rel="noopener"{{ end }}
|
|
{{ if $.user.OpenExternalLinksInNewTab }}target="_blank"{{ else }}rel="noopener"{{ end }}
|
|
|
data-original-link="{{ $.user.MarkReadOnView }}">{{ .entry.URL }}</span></a>
|
|
data-original-link="{{ $.user.MarkReadOnView }}">{{ .entry.URL }}</span></a>
|
|
|
</div>
|
|
</div>
|
|
@@ -254,7 +254,7 @@
|
|
|
{{ if (and $.user (mustBeProxyfied "audio")) }}
|
|
{{ if (and $.user (mustBeProxyfied "audio")) }}
|
|
|
<source src="{{ proxyURL .URL }}" type="{{ .Html5MimeType }}">
|
|
<source src="{{ proxyURL .URL }}" type="{{ .Html5MimeType }}">
|
|
|
{{ else }}
|
|
{{ else }}
|
|
|
- <source src="{{ .URL | safeURL }}" type="{{ .Html5MimeType }}">
|
|
|
|
|
|
|
+ <source src="{{ .URL | untrustedURL }}" type="{{ .Html5MimeType }}">
|
|
|
{{ end }}
|
|
{{ end }}
|
|
|
</audio>
|
|
</audio>
|
|
|
{{ template "enclosure_media_controls" . }}
|
|
{{ template "enclosure_media_controls" . }}
|
|
@@ -271,7 +271,7 @@
|
|
|
{{ if (and $.user (mustBeProxyfied "video")) }}
|
|
{{ if (and $.user (mustBeProxyfied "video")) }}
|
|
|
<source src="{{ proxyURL .URL }}" type="{{ .Html5MimeType }}">
|
|
<source src="{{ proxyURL .URL }}" type="{{ .Html5MimeType }}">
|
|
|
{{ else }}
|
|
{{ else }}
|
|
|
- <source src="{{ .URL | safeURL }}" type="{{ .Html5MimeType }}">
|
|
|
|
|
|
|
+ <source src="{{ .URL | untrustedURL }}" type="{{ .Html5MimeType }}">
|
|
|
{{ end }}
|
|
{{ end }}
|
|
|
</video>
|
|
</video>
|
|
|
{{ template "enclosure_media_controls" . }}
|
|
{{ template "enclosure_media_controls" . }}
|
|
@@ -298,13 +298,13 @@
|
|
|
{{ if (and $.user (mustBeProxyfied "image")) }}
|
|
{{ if (and $.user (mustBeProxyfied "image")) }}
|
|
|
<img src="{{ proxyURL .URL }}" title="{{ .URL }} ({{ .MimeType }})" loading="lazy" alt="{{ .URL }} ({{ .MimeType }})">
|
|
<img src="{{ proxyURL .URL }}" title="{{ .URL }} ({{ .MimeType }})" loading="lazy" alt="{{ .URL }} ({{ .MimeType }})">
|
|
|
{{ else }}
|
|
{{ else }}
|
|
|
- <img src="{{ .URL | safeURL }}" title="{{ .URL }} ({{ .MimeType }})" loading="lazy" alt="{{ .URL }} ({{ .MimeType }})">
|
|
|
|
|
|
|
+ <img src="{{ .URL | untrustedURL }}" title="{{ .URL }} ({{ .MimeType }})" loading="lazy" alt="{{ .URL }} ({{ .MimeType }})">
|
|
|
{{ end }}
|
|
{{ end }}
|
|
|
</div>
|
|
</div>
|
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
|
|
|
|
<div class="entry-enclosure-download">
|
|
<div class="entry-enclosure-download">
|
|
|
- <a href="{{ .URL | safeURL }}" title="{{ t "action.download" }}{{ if gt .Size 0 }} - {{ formatFileSize .Size }}{{ end }}" {{ if $.user.OpenExternalLinksInNewTab }}target="_blank"{{ else }}rel="noopener"{{ end }}>{{ .URL | safeURL }}</a>
|
|
|
|
|
|
|
+ <a href="{{ .URL | untrustedURL }}" title="{{ t "action.download" }}{{ if gt .Size 0 }} - {{ formatFileSize .Size }}{{ end }}" {{ if $.user.OpenExternalLinksInNewTab }}target="_blank"{{ else }}rel="noopener"{{ end }}>{{ .URL }}</a>
|
|
|
<small>{{ if gt .Size 0 }} - <strong>{{ formatFileSize .Size }}</strong>{{ end }}</small>
|
|
<small>{{ if gt .Size 0 }} - <strong>{{ formatFileSize .Size }}</strong>{{ end }}</small>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|