Made sidebar boxes dynamic
* closes #5 Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
53f6a78fdc
commit
20fd05907a
|
@ -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 %}
|
|
@ -0,0 +1,12 @@
|
|||
<div class="card sidebar mb-3">
|
||||
<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>
|
|
@ -0,0 +1,8 @@
|
|||
<div class="card sidebar mb-3">
|
||||
<div class="card-body">
|
||||
<p class="card-text">
|
||||
Job offers:<br>
|
||||
<span class="fas fa-envelope"></span> <a href='mailto:jobs@2martens.de'>jobs at 2martens de</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue