list.html 2.53 KB
Newer Older
Francisco Jesús Acién Pérez's avatar
adding  
Francisco Jesús Acién Pérez committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

{{ define "main" }}
  {{- if eq .Kind "taxonomy" }}
  <div class="breadcrumb">
    <a href="{{ "/" | relURL }}{{ .Data.Plural | urlize }}/">{{ .Data.Plural | humanize }}</a> / {{ .Data.Term | humanize }}
  </div>
  {{- else if eq .Kind "section" }}
  <div class="breadcrumb">
    {{ .Title }}
  </div>
  {{- end }}
  <div class="main" role="main">
    <section class="list {{ .Kind }}-list">
      {{- $paginator := .Paginator }}
      {{- range $paginator.Pages }}
Fran Acien's avatar
Fran Acien committed
16

Francisco Jesús Acién Pérez's avatar
stable    
Francisco Jesús Acién Pérez committed
17
      <div class="card proyect-card">
Fran Acien's avatar
Fran Acien committed
18
19
20
21
        <div class="card-body">

          <div class="row">

22
23
              <div class="col-3 box-logo">
                <a href="{{ .Permalink | relURL }}">
24
                  <img src="{{ if .Params.logo }} {{ if or (hasPrefix .Params.logo "http://") (hasPrefix .Params.logo "https://")}} {{ .Params.logo }}  {{ else }} {{ .Params.logo | relURL }} {{ end }}{{ else }} {{ .Site.Params.logo | relURL }} {{ end }}">
25
26
27
                </a>
              </div>

Fran Acien's avatar
Fran Acien committed
28
            <div class="col">
Francisco Jesús Acién Pérez's avatar
stable    
Francisco Jesús Acién Pérez committed
29
30
31
32
33
                <div class="proyect-title">
                  <a href="{{ .Permalink | relURL }}" class="article-titles">
                    <h2 class="article-title">{{ .Title }}</h2>
                  </a>
                </div>
Fran Acien's avatar
Fran Acien committed
34

Francisco Jesús Acién Pérez's avatar
stable    
Francisco Jesús Acién Pérez committed
35
36
37
38
39
40
41
42
                  {{- if .Params.categories }}
                  {{- range .Params.categories }}
                    <a href="{{ "/" | relURL }}categories/{{ . | urlize }}/">
                      <i class="fas fa-folder"></i>
                      {{ . }}
                    </a>&nbsp;
                  {{- end }}
                  {{- end }}
Fran Acien's avatar
Fran Acien committed
43

Francisco Jesús Acién Pérez's avatar
stable    
Francisco Jesús Acién Pérez committed
44
45
46
47
48
49
50
51
52
                  {{- if .Params.tags }}
                  {{- range .Params.tags }}
                    <a href="{{ "/" | relURL }}tags/{{ . | urlize }}/">
                      <i class="fas fa-tag"></i>
                      {{ . }}
                    </a>&nbsp;
                  {{- end }}
                  {{- end }}
                  <br>
Fran Acien's avatar
Fran Acien committed
53

54
55
56
57
58
                {{ if .Params.categories }}
                  <div class="research-areas-card">
                    <b>Research area:</b> {{ delimit .Params.categories ", " " and " | humanize}}<br>
                  </div>
                {{ end }}
Fran Acien's avatar
Fran Acien committed
59

Francisco Jesús Acién Pérez's avatar
stable    
Francisco Jesús Acién Pérez committed
60
61
62
63
64
                <div class="subtitle-card">
                  {{ if .Params.subtitle }}
                  {{ .Params.subtitle }}
                  {{ end }}
                </div>
Fran Acien's avatar
Fran Acien committed
65
66
67
68
69
            </div>
          </div>

        </div>
      </div>
Francisco Jesús Acién Pérez's avatar
adding  
Francisco Jesús Acién Pérez committed
70
71
72
73
74
75
      {{- end }}
    </section>
    {{ template "_internal/pagination.html" . }}
  </div>

{{ end }}