publiccode.si/layouts/partials/resources.html

33 lines
1.5 KiB
HTML
Raw Normal View History

2017-03-20 20:23:38 +01:00
{{ "<!-- RESOURCES -->" | safeHTML }}
{{ $data := index .Site.Data .Site.Language.Lang }}
2017-03-20 13:37:30 +01:00
<section class="no-padding" id="resources">
2017-03-16 00:00:56 +01:00
<div class="container-fluid">
<h2 class="hidden">{{ .Site.Params.navigation.links.resources }}</h2>
2017-03-16 00:00:56 +01:00
<div class="row no-gutter">
{{ range $data.resources }}
2017-03-16 00:00:56 +01:00
<div class="col-lg-4 col-sm-6">
2017-03-20 13:37:30 +01:00
<a href="#resourcesModal{{ .modalID }}" class="resources-box resources-link" data-toggle="modal">
<img src="/img/resources/{{ .img }}" class="img-responsive" alt="">
2017-03-16 00:00:56 +01:00
{{ if and .category .title }}
2017-03-20 13:37:30 +01:00
<div class="resources-box-caption">
<div class="resources-box-caption-content">
2017-03-16 00:00:56 +01:00
{{ with .category }}
2017-03-20 13:37:30 +01:00
<div class="resource-category text-faded">
2017-03-16 00:00:56 +01:00
{{ . }}
</div>
{{ end }}
{{ with .title }}
2017-03-20 13:37:30 +01:00
<div class="resource-name">
2017-03-16 00:00:56 +01:00
{{ . }}
</div>
{{ end }}
</div>
</div>
{{ end }}
</a>
</div>
{{ end }}
</div>
</div>
</section>