post: list

This commit is contained in:
He4eT 2020-10-31 04:02:25 +05:00
commit 85745e0c4d
4 changed files with 27 additions and 6 deletions

View file

@ -20,11 +20,11 @@
<li><a href="/"><%= site.title %></a></li>
<% if (page.section) { %>
<li><a href="/<%= page.section %>">
<li><a href="/<%= page.section %>/">
<%= page.section %></a></li>
<% } %>
<% if (page.year) { %>
<li><a href="/post/list/#<%= page.year %>">
<li><a href="/post/#<%= page.year %>">
<%= page.year %></a></li>
<% } %>

6
src/pages/home.md Normal file
View file

@ -0,0 +1,6 @@
---
layout: redirect
redirectTarget: '/'
---

View file

@ -1,5 +1,5 @@
<main>
<a href="/test/">
Markdown test
<a href="/post/">
posts
</a>
</main>

View file

@ -1,6 +1,21 @@
---
layout: redirect
redirectTarget: '/post/list/'
layout: post
lang: 'en'
section: 'post'
title: 'list'
description: 'Сomplete list of posts'
---
## 2020
- [Markdown test](/test/)
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
- [Another link](/test/)
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod