wrap aside elements in order to minimise empty space if they are undefinded
This commit is contained in:
parent
b72e9e5536
commit
5298bdbede
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,8 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
<h1><a href="{{ SITEURL }}">{{ SITETITLE }}</a></h1>
|
<h1><a href="{{ SITEURL }}">{{ SITETITLE }}</a></h1>
|
||||||
<p>{{ SITESUBTITLE }}</p>
|
{% if SITESUBTITLE %}<p>{{ SITESUBTITLE }}</p>{% endif %}
|
||||||
|
{% if pages %}
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="list">
|
<ul class="list">
|
||||||
{% for page in pages|sort(attribute='title') %}
|
{% for page in pages|sort(attribute='title') %}
|
||||||
|
@ -77,6 +78,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
{% endif %}
|
||||||
<ul class="social">
|
<ul class="social">
|
||||||
{% for name, link in SOCIAL %}
|
{% for name, link in SOCIAL %}
|
||||||
<li><a class="sc-{{ name }}" href="{{ link }}" target="_blank"><i class="fa fa-{{ name }}"></i></a></li>
|
<li><a class="sc-{{ name }}" href="{{ link }}" target="_blank"><i class="fa fa-{{ name }}"></i></a></li>
|
||||||
|
|
Loading…
Reference in a new issue