Revert "fix: move /about/ page to homepage"

Revert 2cd9094dc5 and d732bcc88b
This commit is contained in:
curben 2019-09-03 17:06:29 +01:00
parent d732bcc88b
commit 6fd9f505d5
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
8 changed files with 35 additions and 33 deletions

View File

@ -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

View File

@ -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>

View File

@ -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

4
source/about/index.md Normal file
View File

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

View File

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

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,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

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

View File

@ -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 { %>