mirror of https://gitlab.com/curben/blog
fix: add homepage
This commit is contained in:
parent
ae3fc838bc
commit
d732bcc88b
|
@ -1,4 +0,0 @@
|
|||
---
|
||||
title: About
|
||||
layout: about
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
layout: index
|
||||
---
|
|
@ -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>
|
|
@ -1 +0,0 @@
|
|||
about.ejs
|
|
@ -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>
|
|
@ -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 { %>
|
||||
|
|
Loading…
Reference in New Issue