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> <li><a href="/"><%= site.title %></a></li>
<% if (page.section) { %> <% if (page.section) { %>
<li><a href="/<%= page.section %>"> <li><a href="/<%= page.section %>/">
<%= page.section %></a></li> <%= page.section %></a></li>
<% } %> <% } %>
<% if (page.year) { %> <% if (page.year) { %>
<li><a href="/post/list/#<%= page.year %>"> <li><a href="/post/#<%= page.year %>">
<%= page.year %></a></li> <%= 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> <main>
<a href="/test/"> <a href="/post/">
Markdown test posts
</a> </a>
</main> </main>

View file

@ -1,6 +1,21 @@
--- ---
layout: redirect layout: post
redirectTarget: '/post/list/' 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