Ajout template services
This commit is contained in:
parent
609fea0daf
commit
6682a19f61
2 changed files with 21 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
.sass-cache
|
.sass-cache
|
||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
|
package-lock.json
|
||||||
|
pp-publish.sh
|
||||||
|
|
19
templates/modular/services.html.twig
Normal file
19
templates/modular/services.html.twig
Normal 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>
|
Loading…
Reference in a new issue