From 37c283c1dcefdbcb105e946753291b27aca422cb Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Tue, 23 May 2023 23:34:04 +0200 Subject: [PATCH] Add index with default layout --- _config.yml | 3 +++ _layouts/default.html | 19 +++++++++++++++++++ index.markdown | 6 ------ index.tl | 11 +++++++++++ 4 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 _layouts/default.html delete mode 100644 index.markdown create mode 100644 index.tl diff --git a/_config.yml b/_config.yml index 02d3e80..1edcd44 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..5e444bf --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,19 @@ + + + + + {{ page.title }} + + + + +

{{ page.title }}

+
{{ content }}
+ + + diff --git a/index.markdown b/index.markdown deleted file mode 100644 index 0671507..0000000 --- a/index.markdown +++ /dev/null @@ -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 ---- diff --git a/index.tl b/index.tl new file mode 100644 index 0000000..821d475 --- /dev/null +++ b/index.tl @@ -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 %}