mirror of https://gitlab.com/curben/blog
Revert "fix: move /about/ page to homepage"
Revert2cd9094dc5
andd732bcc88b
This commit is contained in:
parent
d732bcc88b
commit
6fd9f505d5
|
@ -98,8 +98,8 @@ theme_config:
|
|||
|
||||
# Header
|
||||
menu:
|
||||
Home: /
|
||||
Blog: /blog/
|
||||
Home: /blog/
|
||||
About: /about/
|
||||
Feed: /atom.xml
|
||||
GitLab: https://gitlab.com/curben/blog
|
||||
|
||||
|
@ -119,7 +119,6 @@ theme_config:
|
|||
# If "icons: true" link names will interpreted as fontawesome icon names
|
||||
# Use the forkawesome icon names (https://forkaweso.me/Fork-Awesome/icons/) without the fa- prefix
|
||||
links:
|
||||
Home: /
|
||||
Blog: /blog/
|
||||
Home: /blog/
|
||||
Feed: /atom.xml
|
||||
GitLab: https://gitlab.com/curben/blog
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
{# home page #}
|
||||
<url>
|
||||
<loc>{{ config.url + '/' | uriencode }}</loc>
|
||||
<loc>{{ config.url + '/' + config.archive_dir + '/' | uriencode }}</loc>
|
||||
<lastmod>{{ sNow }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Move about page to homepage
|
||||
/about/ / 302
|
||||
# Temporarily set the homepage to /blog
|
||||
/ /blog/ 302
|
||||
# Redirect post to /blog/
|
||||
/:year/:month/:date/:slug /blog/:year/:month/:date/:slug/ 301
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: About
|
||||
layout: about
|
||||
---
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
layout: index
|
||||
---
|
|
@ -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,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>
|
|
@ -0,0 +1 @@
|
|||
archive.ejs
|
|
@ -1,7 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="<%= config.language %>">
|
||||
<%- partial('_partial/head') %>
|
||||
<% if (is_home()) { %>
|
||||
<%/* set /about page to use "home" page layout */%>
|
||||
<% if (is_current('about/index.html')) { %>
|
||||
<% if (theme.dark) { %>
|
||||
<body class="home-body dark">
|
||||
<% } else { %>
|
||||
|
|
Loading…
Reference in New Issue