diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 05:12:46 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 05:12:46 +0300 |
commit | b6faaf979c3f86ffd5e79d4c7af16c301ad04a57 (patch) | |
tree | cd75f5170fd39001af6814aa9b471f9eea496f45 | |
parent | fix navbar ordering (diff) | |
download | jekyll-theme-b6faaf979c3f86ffd5e79d4c7af16c301ad04a57.tar.gz jekyll-theme-b6faaf979c3f86ffd5e79d4c7af16c301ad04a57.zip |
add a collection of "notes"
-rw-r--r-- | _config.yml | 4 | ||||
-rw-r--r-- | _layouts/note.html | 6 | ||||
-rw-r--r-- | notes/index.html | 20 |
3 files changed, 30 insertions, 0 deletions
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 +--- +<h1>{{ page.title }}</h1> +<hr> +{{ 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: <span class="glyphicon glyphicon-search"></span> Notes +navbar_priority: 3 +--- +<h1>{{ page.title }}</h1> +<hr> +{% if site.notes.size != 0 %} + <p>This is a complete list of "notes" I maintain.</p> + <ul> + {% for note in site.notes %} + <li><a href="{{ site.baseurl }}{{ note.url }}">{{ note.title }}</a></li> + {% endfor %} + </ul> +{% else %} + <p>No notes have been added yet.</p> +{% endif %} |