Ajout template services

This commit is contained in:
Navas 2022-12-11 18:47:11 +01:00
parent 609fea0daf
commit 6682a19f61
2 changed files with 21 additions and 0 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
.sass-cache .sass-cache
.DS_Store .DS_Store
node_modules node_modules
package-lock.json
pp-publish.sh

View file

@ -0,0 +1,19 @@
<div class="modular-row portfolio">
{{ content|raw }}
<div class="notebooks"><div class="notebook-row">
{% for service in page.header.services %}
<div class="notebook">
{% if service.url %}<a href="{{ service.url }}">{% endif %}
<div class='logo' style="background-image: url({{ page.media[service.image].url }})"></div>
{% if service.url %}</a>{% endif %}
<div class="desc">
<h4>{{ service.title }}</h4>
{% if service.url %}
<p><a href="{{ service.url }}">{{ service.url }}</a><br>
{% endif %}
{{ service.desc|raw }}</p>
</div>
</div>
{% endfor %}
</div></div>
</div>