feat: better project links generation

This commit is contained in:
Laureηt 2021-05-21 15:49:38 +02:00
parent fbb8b3d3e8
commit c57ba5c01b
2 changed files with 26 additions and 6 deletions

View file

@ -58,10 +58,6 @@ section {
padding-left: 1em;
}
section > a {
padding-left: 1em;
}
section > p {
padding-left: 1em;
margin: 0;
@ -71,6 +67,15 @@ section > h3 {
margin-bottom: .3em;
}
.project-links {
padding-left: 1em;
}
.project-links > a {
padding-left: .3em;
text-decoration: none;
}
h2 {
margin: 1em 0 .3em 0;
}

View file

@ -54,8 +54,15 @@ permalink: "resume/{{ resume.locale }}/index.html"
<section>
<h3>{{ project.title }}</h3>
<p>{{ project.description }}</p>
<a class="fa fa-file-pdf-o" href="{{ project.pdf }}">
{{ resume.report }}</a>
<div class="project-links">
{% if project.pdf %}
<a class="fa fa-file-pdf-o" href="{{ project.pdf }}"></a>
{% endif %}
{% if project.repo %}
<a class="fa fa-gitlab" href="{{ project.repo }}"></a>
{% endif %}
</div>
</section>
{% endfor %}
@ -66,6 +73,14 @@ permalink: "resume/{{ resume.locale }}/index.html"
<section>
<h3>{{ project.title }}</h3>
<p>{{ project.description }}</p>
<div class="project-links">
{% if project.pdf %}
<a class="fa fa-file-pdf-o" href="{{ project.pdf }}"></a>
{% endif %}
{% if project.repo %}
<a class="fa fa-gitlab" href="{{ project.repo }}"></a>
{% endif %}
</div>
</section>
{% endfor %}