File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 7
7
{% include nav.html %}
8
8
< div id ="content-left ">
9
9
< h2 > Category: {{page.category}}</ h2 >
10
+ {% assign content = page.content | strip_newlines %}
11
+ {% if content != "" %}
12
+ {{content}}
13
+ {% endif %}
10
14
{% for post in site.categories[page.category] %}
11
15
< div id ="post-short ">
12
16
< a href ="{{site.url}}{{site.baseurl}}{{post.url}} ">
Original file line number Diff line number Diff line change @@ -12,13 +12,15 @@ <h2>{{ page.title }}</h2>
12
12
< p >
13
13
{{ content }}
14
14
</ p >
15
- < div id ="categories ">
16
- < p > < b > Categories:</ b >
17
- {% for category in page.categories %}
18
- < a href ="{{site.url}}{{site.baseurl}}/categories/{{category}}/ "> #{{category}}</ a >
19
- {% endfor %}
20
- </ p >
21
- </ div >
15
+ {% if page.categories.size > 0 %}
16
+ < div id ="categories ">
17
+ < p > < b > Categories:</ b >
18
+ {% for category in page.categories %}
19
+ < a href ="{{site.url}}{{site.baseurl}}/categories/{{category}}/ "> #{{category}}</ a >
20
+ {% endfor %}
21
+ </ p >
22
+ </ div >
23
+ {% endif %}
22
24
</ div >
23
25
</ div >
24
26
{% include footer.html %}
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ layout: category
3
3
category : update
4
4
permalink : /categories/update/
5
5
---
6
+ This is an example description.
You can’t perform that action at this time.
0 commit comments