From b6faaf979c3f86ffd5e79d4c7af16c301ad04a57 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 30 Sep 2019 05:12:46 +0300 Subject: add a collection of "notes" --- _config.yml | 4 ++++ _layouts/note.html | 6 ++++++ notes/index.html | 20 ++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 _layouts/note.html create mode 100644 notes/index.html diff --git a/_config.yml b/_config.yml index 2c56abb..0a72f27 100644 --- a/_config.yml +++ b/_config.yml @@ -13,6 +13,10 @@ exclude: paginate: 10 +collections: + notes: + output: true + defaults: - scope: path: "" diff --git a/_layouts/note.html b/_layouts/note.html new file mode 100644 index 0000000..45f9b34 --- /dev/null +++ b/_layouts/note.html @@ -0,0 +1,6 @@ +--- +layout: default +--- +

{{ page.title }}

+
+{{ content }} diff --git a/notes/index.html b/notes/index.html new file mode 100644 index 0000000..b853332 --- /dev/null +++ b/notes/index.html @@ -0,0 +1,20 @@ +--- +layout: default +title: Notes +groups: + - navbar +navbar_link:  Notes +navbar_priority: 3 +--- +

{{ page.title }}

+
+{% if site.notes.size != 0 %} +

This is a complete list of "notes" I maintain.

+ +{% else %} +

No notes have been added yet.

+{% endif %} -- cgit v1.2.3