Add index with default layout

This commit is contained in:
cryptogopher 2023-05-23 23:34:04 +02:00
parent 9ed8b664de
commit 37c283c1dc
4 changed files with 33 additions and 6 deletions

View File

@ -41,6 +41,9 @@ feed:
textile_ext: "textile,txtl,tl"
redcloth:
hard_breaks: false
# TODO: plugin jekyll-professorize with patches:
# - setting default ext other than .md
# - adding figurecaption to {% highlight %} figure

19
_layouts/default.html Normal file
View File

@ -0,0 +1,19 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
<!--
<nav>
<a href="/">Home</a>
<a href="/blog/">Blog</a>
</nav>
-->
<h1>{{ page.title }}</h1>
<section>{{ content }}</section>
<footer></footer>
</body>
</html>

View File

@ -1,6 +0,0 @@
---
# Feel free to add content and custom Front Matter to this file.
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: home
---

11
index.tl Normal file
View File

@ -0,0 +1,11 @@
---
# Feel free to add content and custom Front Matter to this file.
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: default
---
{% for post in site.posts %}
* {{post.date | date: "%Y-%m-%d"}}: "{{post.title}}":{{post.url}}
{% if post.update_date %}(updated {{post.update_date | date: "%Y-%m-%d"}}){% endif %}
{% endfor %}