Add index with default layout
This commit is contained in:
parent
9ed8b664de
commit
37c283c1dc
@ -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
19
_layouts/default.html
Normal 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>
|
@ -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
11
index.tl
Normal 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 %}
|
Loading…
x
Reference in New Issue
Block a user