Moved main content to seperate ejs file

This commit is contained in:
Nikurasu 2023-01-06 21:50:17 +01:00
parent d63fec52f0
commit 18672fcd55
2 changed files with 28 additions and 27 deletions

View file

@ -1,30 +1,4 @@
<%- include('partials/head') %>
<%- include('partials/header') %>
<div class="container">
<div class="imgbox">
<img src="img/<%= filenameProfilePic %> " alt="">
</div>
<div class="headingbox">
<h1><%= name %></h1>
<% if(summaryText !== '') { %>
<div class="summaryBox">
<p class="summaryText"><%= summaryText %></p>
</div>
<% } %>
</div>
<div class="mainLinkbox">
<% links.forEach(link => { %>
<a <% if(link.verify && link.verify.toLowerCase() === 'mastodon') { %> rel="me" <% } %> href="<%= link.hyperlink %>">
<button class="<%= `${link.brandcolor} ${link.color}` %>"><%= link.text %></button>
</a>
<% }) %>
</div>
<div class="smallLinkbox">
<% smallLinks.forEach(link => { %>
<a href="<%= link.hyperlink %>">
<i class="fa fa-<%= link.platform.toLowerCase() %>" aria-hidden="true"></i>
</a>
<% }) %>
</div>
</div>
<%- include('partials/defaultMain') %>
<%- include('partials/footer') %>

View file

@ -0,0 +1,27 @@
<div class="container">
<div class="imgbox">
<img src="img/<%= filenameProfilePic %> " alt="">
</div>
<div class="headingbox">
<h1><%= name %></h1>
<% if(summaryText !== '') { %>
<div class="summaryBox">
<p class="summaryText"><%= summaryText %></p>
</div>
<% } %>
</div>
<div class="mainLinkbox">
<% links.forEach(link => { %>
<a <% if(link.verify && link.verify.toLowerCase() === 'mastodon') { %> rel="me" <% } %> href="<%= link.hyperlink %>">
<button class="<%= `${link.brandcolor} ${link.color}` %>"><%= link.text %></button>
</a>
<% }) %>
</div>
<div class="smallLinkbox">
<% smallLinks.forEach(link => { %>
<a href="<%= link.hyperlink %>">
<i class="fa fa-<%= link.platform.toLowerCase() %>" aria-hidden="true"></i>
</a>
<% }) %>
</div>
</div>