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