<% const { description: fs_description, hitokoto: fs_hitokoto } = theme.style.first_screen const { description: c_description } = config let final_description = fs_description || c_description || '' final_description = final_description.split('||').map(desc => desc.trim()) if (final_description.length > 2) { final_description.length = 2 } const { enable: sc_enable, links: sc_links } = theme.social_contact %>
<% if (final_description.length || fs_hitokoto === true) { %>
<% for (const idx in final_description) { %>
<%= final_description[idx] %>
<% } %>
<% } %> <% if (fs_hitokoto === true) { %> <% } %> <% if (sc_enable) { %>
<% for (const key in sc_links) { %> <% if(sc_links[key]) { %> <% const tmpl = sc_links[key].split('|').map(x => x.trim()) let isImg = false let link = sc_links[key] if (tmpl.length > 1) { link = tmpl[1] isImg = tmpl[0] === 'img' } %>
> <% if(key === 'email') { %> <% } else { %> <% if(isImg) { %> <% } else { %> <% } %> <% } %>
<% } %> <% } %>
<% } %>