2025-2-26-fixed
This commit is contained in:
53
themes/fluid/layout/about.ejs
Normal file
53
themes/fluid/layout/about.ejs
Normal file
@ -0,0 +1,53 @@
|
||||
<%
|
||||
page.layout = "about"
|
||||
page.title = theme.about.title || __('about.title')
|
||||
page.subtitle = theme.about.subtitle || __('about.subtitle')
|
||||
page.banner_img = page.banner_img || theme.about.banner_img
|
||||
page.banner_img_height = page.banner_img_height || theme.about.banner_img_height
|
||||
page.banner_mask_alpha = page.banner_mask_alpha || theme.about.banner_mask_alpha
|
||||
%>
|
||||
|
||||
<div class="text-center">
|
||||
<div class="about-info">
|
||||
<div class="about-name"><%- theme.about.name %></div>
|
||||
<div class="about-intro"><%- theme.about.introduce || theme.about.intro %></div>
|
||||
<div class="about-icons">
|
||||
<% for(const each of theme.about.icons || []) { %>
|
||||
<% if (!each.class) continue; %>
|
||||
<% var cls = each.class %>
|
||||
<% var isQr = each.qrcode %>
|
||||
<a <%= isQr ? '' : ('href=' + url_for(each.link)) %> class="<%= isQr ? 'qr-trigger' : '' %>
|
||||
<%= !isQr && each.tip ? 'hint--bottom hint--rounded' : '' %>"
|
||||
<% if (!isQr && each.tip) { %>aria-label="<%= each.tip %>"<% } %>
|
||||
target="<%= isQr ? '_self' : '_blank' %>"
|
||||
>
|
||||
<i class="<%= cls %>" aria-hidden="true"></i>
|
||||
<% if (isQr) { %>
|
||||
<img class="qr-img" src="<%= url_for(each.qrcode) %>" alt="qrcode" />
|
||||
<% } %>
|
||||
</a>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<article class="about-content page-content mt-5">
|
||||
<div class="markdown-body">
|
||||
<%- page.content %>
|
||||
</div>
|
||||
|
||||
<% if(page.comments) { %>
|
||||
<!-- Comments -->
|
||||
<article id="comments">
|
||||
<% var type %>
|
||||
<% if (typeof page.comment === 'string' && page.comment !== '') { %>
|
||||
<% type = '_partials/comments/' + page.comment %>
|
||||
<% } else { %>
|
||||
<% type = '_partials/comments/' + theme.post.comments.type %>
|
||||
<% } %>
|
||||
<%- partial(type) %>
|
||||
</article>
|
||||
<% } %>
|
||||
</article>
|
||||
|
||||
<%- partial('_partials/markdown-plugins') %>
|
||||
Reference in New Issue
Block a user