Made sidebar boxes dynamic
* closes #5 Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
@ -1,12 +1,6 @@
|
||||
<div class="card sidebar">
|
||||
<img class="card-img-top" src="{{ site.data.author.image }}" alt="Image of {{ site.data.author.name }}">
|
||||
<div class="card-body">
|
||||
<p class="card-text">
|
||||
<ul class="list-unstyled">
|
||||
<li><span class="font-weight-bold">Name:</span> {{ site.data.author.name }}</li>
|
||||
<li><span class="font-weight-bold">Age:</span> {{ site.data.author.age }}</li>
|
||||
<li><span class="font-weight-bold">Location:</span> {{ site.data.author.location }}</li>
|
||||
<li><a href="{{ site.data.author.cv_link }}">Further information...</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% if page.sidebarboxes %}
|
||||
{% assign boxes = page.sidebarboxes | split:' ' %}
|
||||
{% for box_name in boxes %}
|
||||
{% include sidebar/{{ box_name }}.html %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user