Update template.ejs

This commit is contained in:
bihlink 2022-06-20 23:22:20 +02:00 committed by GitHub
parent f67e317204
commit e67a6b3de9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -25,13 +25,13 @@
<div class="meta">
<div class="header" style="<%= meta.headerImage?`background-image:url(${meta.headerImage})`:'' %>">
<a class="header-left" href="<%= meta.link %>">
<a class="header-left" target="_top" href="<%= meta.link %>">
<% if (meta.avatar){ %>
<img class="avatar circular" src="<%= meta.avatar %>"></img>
<% } %>
</a>
<div class="description header-right">
<a class="header-title" target="_blank" href="<%= meta.link %>">
<a class="header-title" target="_top" href="<%= meta.link %>">
<%= meta.title %>
</a>
<br><br>
@ -50,11 +50,11 @@
<div class="item-title"> <%- item.title %> </div>
<% } %>
<div class="author">
<a target="_blank" class="avatar" href="<%- item.author.uri %>">
<a target="_top" class="avatar" href="<%- item.author.uri %>">
<img class="avatar" src="<%- item.author.avatar %>"/>
</a>
<div class="author-info">
<a target="_blank" class="author-displayname" href="<%- item.author.uri %>"> <%= item.author.displayName %> </a>
<a target="_top" class="author-displayname" href="<%- item.author.uri %>"> <%= item.author.displayName %> </a>
<div class="author-fullname"> <%= item.author.fullName %> </div>
</div>
</div>
@ -78,7 +78,7 @@
<% }else if (e.type.indexOf('video') > -1){ %>
<video class="enclosure" controls loop src="<%= e.url %>"/>
<% } else { %>
<a target="_blank" class="enclosure" href="<%= e.url %>" >
<a target="_top" class="enclosure" href="<%= e.url %>" >
<% if (e.type.indexOf('image') > -1){ %>
<img src="<%= e.url %>" alt="<%= e.name %>" title="<%= e.name %>"/>
<% } else { %>