diff options
| author | Yehonal <yehonal.azeroth@gmail.com> | 2018-12-19 17:43:10 +0100 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2018-12-19 17:43:36 +0100 |
| commit | c9d5ac3d8e1d5a8d3a65bf1fb6e0023c6dc6b85c (patch) | |
| tree | 70f9af3cf873707ec47941a3d154a6e5b9c6c8fc /_includes/git-wiki/components/lists | |
| parent | 08bb243916dc812c2b6b18d0ff24710dd1a1306b (diff) | |
| download | wiki-c9d5ac3d8e1d5a8d3a65bf1fb6e0023c6dc6b85c.tar.gz wiki-c9d5ac3d8e1d5a8d3a65bf1fb6e0023c6dc6b85c.tar.bz2 wiki-c9d5ac3d8e1d5a8d3a65bf1fb6e0023c6dc6b85c.zip | |
Various css fixes
Diffstat (limited to '_includes/git-wiki/components/lists')
| -rw-r--r-- | _includes/git-wiki/components/lists/page-list.html | 47 | ||||
| -rw-r--r-- | _includes/git-wiki/components/lists/post-list.html | 49 |
2 files changed, 51 insertions, 45 deletions
diff --git a/_includes/git-wiki/components/lists/page-list.html b/_includes/git-wiki/components/lists/page-list.html index 8c32b63..5fb118d 100644 --- a/_includes/git-wiki/components/lists/page-list.html +++ b/_includes/git-wiki/components/lists/page-list.html @@ -1,26 +1,29 @@ -{% if site.inc_before_page_list %} -{% include {{ site.inc_before_page_list }} %} -{% endif %} +<div class="git-wiki-page-list"> + {% if site.inc_before_page_list %} + {% include {{ site.inc_before_page_list }} %} + {% endif %} -<span class="page-list-title">Pages {% if (site.show_wiki_pages_limit >= 1 %} (Latest {{site.show_wiki_pages_limit }} updated) {% endif %}:</span> -<ul class="page-list"> -{% assign numPages=0 %} -{% assign items = site.pages | sort: 'date' %} -{% for post in items %} -{% if numPages >= site.show_wiki_pages_limit %} - {% break %} -{% endif %} + <span class="page-list-title">Pages {% if (site.show_wiki_pages_limit >= 1 %} (Latest {{site.show_wiki_pages_limit + }} updated) {% endif %}:</span> + <ul class="page-list"> + {% assign numPages=0 %} + {% assign items = site.pages | sort: 'date' %} + {% for post in items %} + {% if numPages >= site.show_wiki_pages_limit %} + {% break %} + {% endif %} -{% if post.layout != "null" and post.sitemap != false and post.title %} - <li class="page-list-item"> - <a href="{{ post.url | relative_url }}">{{ post.title}}</a> - </li> - {% assign numPages = numPages | plus: 1 %} -{% endif %} + {% if post.layout != "null" and post.sitemap != false and post.title %} + <li class="page-list-item"> + <a href="{{ post.url | relative_url }}">{{ post.title}}</a> + </li> + {% assign numPages = numPages | plus: 1 %} + {% endif %} -{% endfor %} -</ul> + {% endfor %} + </ul> -{% if site.inc_after_page_list %} -{% include {{ site.inc_after_page_list }} %} -{% endif %}
\ No newline at end of file + {% if site.inc_after_page_list %} + {% include {{ site.inc_after_page_list }} %} + {% endif %} +</div>
\ No newline at end of file diff --git a/_includes/git-wiki/components/lists/post-list.html b/_includes/git-wiki/components/lists/post-list.html index be1aa35..d6fa663 100644 --- a/_includes/git-wiki/components/lists/post-list.html +++ b/_includes/git-wiki/components/lists/post-list.html @@ -1,28 +1,31 @@ -{% if site.inc_before_post_list %} -{% include {{ site.inc_before_post_list }} %} -{% endif %} +<div class="git-wiki-page-list"> + {% if site.inc_before_post_list %} + {% include {{ site.inc_before_post_list }} %} + {% endif %} -<span class="post-list-title">Posts {% if (site.show_wiki_posts_limit >= 1 %} (Latest {{site.show_wiki_posts_limit }} updated) {% endif %}:</span> -<ul class="post-list"> -{% assign numPages=0 %} -{% assign items = site.posts | sort: 'date' %} -{% for post in items %} -{% if numPages >= site.show_wiki_posts_limit %} - {% break %} -{% endif %} + <span class="post-list-title">Posts {% if (site.show_wiki_posts_limit >= 1 %} (Latest {{site.show_wiki_posts_limit + }} updated) {% endif %}:</span> + <ul class="post-list"> + {% assign numPages=0 %} + {% assign items = site.posts | sort: 'date' %} + {% for post in items %} + {% if numPages >= site.show_wiki_posts_limit %} + {% break %} + {% endif %} -{% if post.layout != "null" and post.sitemap != false and post.title %} - <li class="post-list-item"> - <a href="{{ post.url | relative_url }}">{{ post.title}}</a> - </li> - {% assign numPages = numPages | plus: 1 %} -{% endif %} + {% if post.layout != "null" and post.sitemap != false and post.title %} + <li class="post-list-item"> + <a href="{{ post.url | relative_url }}">{{ post.title}}</a> + </li> + {% assign numPages = numPages | plus: 1 %} + {% endif %} -{% endfor %} -</ul> + {% endfor %} + </ul> -<span class="post-list read-all"><a href="{{ '/blog/' | relative_url}}">Read all</a></span> + <span class="post-list read-all"><a href="{{ '/blog/' | relative_url}}">Read all</a></span> -{% if site.inc_after_post_list %} -{% include {{ site.inc_after_post_list }} %} -{% endif %}
\ No newline at end of file + {% if site.inc_after_post_list %} + {% include {{ site.inc_after_post_list }} %} + {% endif %} +</div>
\ No newline at end of file |
