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