fix: add homepage

This commit is contained in:
curben 2019-09-03 17:01:48 +01:00
parent ae3fc838bc
commit d732bcc88b
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
5 changed files with 26 additions and 29 deletions

View File

@ -1,4 +0,0 @@
---
title: About
layout: about
---

3
source/index.md Normal file
View File

@ -0,0 +1,3 @@
---
layout: index
---

View File

@ -1,22 +0,0 @@
<div class="home">
<div class="content">
<div class="profile">
<h1 class="nickname"><%= theme.nickname %></h1>
<div class="description">
<p><%- markdown(theme.description) %></p>
</div>
</div>
<hr/>
</div>
</div>
<ul class="footer-links">
<% for (let key in theme.links) { %>
<li>
<% if (theme.icons) { %>
<a href="<%= theme.links[key] %>"><span class="fa fa-<%= key.toLowerCase() %>"></span></a>
<% } else { %>
<a href="<%= theme.links[key] %>"><%= key %></a>
<% } %>
</li>
<% } %>
</ul>

View File

@ -1 +0,0 @@
about.ejs

View File

@ -0,0 +1,22 @@
<div class="home">
<div class="content">
<div class="profile">
<h1 class="nickname"><%= theme.nickname %></h1>
<div class="description">
<p><%- markdown(theme.description) %></p>
</div>
</div>
<hr/>
</div>
</div>
<ul class="footer-links">
<% for (let key in theme.links) { %>
<li>
<% if (theme.icons) { %>
<a href="<%= theme.links[key] %>"><span class="fa fa-<%= key.toLowerCase() %>"></span></a>
<% } else { %>
<a href="<%= theme.links[key] %>"><%= key %></a>
<% } %>
</li>
<% } %>
</ul>

View File

@ -1,8 +1,7 @@
<!DOCTYPE html>
<html lang="<%= config.language %>">
<%- partial('_partial/head') %>
<%/* set /about page to use "home" page layout */%>
<% if (is_current('about/index.html')) { %>
<% if (is_home()) { %>
<% if (theme.dark) { %>
<body class="home-body dark">
<% } else { %>