diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 14:46:26 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-09-30 14:46:26 +0300 |
commit | 72f7f01476de1715db939449b034c444207e6f11 (patch) | |
tree | 786d072cca2edc0cc2347f9752ee9d777e149302 | |
parent | add default layouts to _config.yml (diff) | |
download | blog-72f7f01476de1715db939449b034c444207e6f11.tar.gz blog-72f7f01476de1715db939449b034c444207e6f11.zip |
minor markup & wording fixes
Diffstat (limited to '')
-rw-r--r-- | _layouts/category.html | 4 | ||||
-rw-r--r-- | _layouts/note.html | 2 | ||||
-rw-r--r-- | all/index.html | 27 | ||||
-rw-r--r-- | notes/index.html | 10 |
4 files changed, 24 insertions, 19 deletions
diff --git a/_layouts/category.html b/_layouts/category.html index 066b3dd..efb34db 100644 --- a/_layouts/category.html +++ b/_layouts/category.html @@ -2,8 +2,8 @@ layout: default --- <h1>{{ page.title }}</h1> -<hr> -<p>This is a list of posts in the "{{ page.category }}" category.</p> +<hr/> +<p>This is a list of posts in category "{{ page.category }}".</p> {% if site.categories[page.category].size > 0 %} <ul> {% for post in site.categories[page.category] %} diff --git a/_layouts/note.html b/_layouts/note.html index 45f9b34..090100f 100644 --- a/_layouts/note.html +++ b/_layouts/note.html @@ -2,5 +2,5 @@ layout: default --- <h1>{{ page.title }}</h1> -<hr> +<hr/> {{ content }} diff --git a/all/index.html b/all/index.html index 9188f3d..9ba7848 100644 --- a/all/index.html +++ b/all/index.html @@ -1,16 +1,21 @@ --- -title: Categories +title: All posts groups: - navbar -navbar_link: <span class="glyphicon glyphicon-th-list"></span> Categories +navbar_link: <span class="glyphicon glyphicon-th-list"></span> Posts navbar_priority: 2 --- -{% for category in site.categories %} - <h1><a class="category" href="{{ site.baseurl }}/{{ category[0] | slugify: 'pretty' }}">{{ category[0] }}</a></h1> - <hr> - <ul> - {% for post in category[1] %} - <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} — {{ post.title }}</a></li> - {% endfor %} - </ul> -{% endfor %} +{% if site.categories.size != 0 %} + {% for category in site.categories %} + <h1><a class="category" href="{{ site.baseurl }}/{{ category[0] | slugify: 'pretty' }}">{{ category[0] }}</a></h1> + <hr/> + <ul> + {% for post in category[1] %} + <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} — {{ post.title }}</a></li> + {% endfor %} + </ul> + {% endfor %} +{% else %} + <p>Sorry, no posts have been added yet.</p> + <hr/> +{% endif %} diff --git a/notes/index.html b/notes/index.html index b853332..2cfa42c 100644 --- a/notes/index.html +++ b/notes/index.html @@ -7,13 +7,13 @@ navbar_link: <span class="glyphicon glyphicon-search"></span> Notes navbar_priority: 3 --- <h1>{{ page.title }}</h1> -<hr> +<hr/> {% if site.notes.size != 0 %} - <p>This is a complete list of "notes" I maintain.</p> + <p>This is a complete list of notes I maintain for my personal usage.</p> <ul> - {% for note in site.notes %} - <li><a href="{{ site.baseurl }}{{ note.url }}">{{ note.title }}</a></li> - {% endfor %} + {% 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> |