Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/mertbakir/resume-a4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/section-details-list.html')
-rw-r--r--layouts/partials/section-details-list.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/layouts/partials/section-details-list.html b/layouts/partials/section-details-list.html
new file mode 100644
index 0000000..c36e5ca
--- /dev/null
+++ b/layouts/partials/section-details-list.html
@@ -0,0 +1,32 @@
+{{- $collection := index .Data (.Feature.collection | default "features" ) -}}
+{{ range (index $collection .Feature.feature) }}
+<div class="item">
+ <h2 class="item-title">
+ {{- if .link -}}
+ <a href="{{ .link }}">{{ .title }}</a>
+ {{- else -}}
+ {{ .title }}
+ {{- end -}}
+ </h2>
+ <span>{{ if and .subtitle .date }}
+ {{- .subtitle | markdownify }} - {{ .date }}
+ {{- else if .subtitle }}
+ {{- .subtitle | markdownify }}
+ {{- else if .date }}
+ {{- .date }}
+ {{- end }}</span>
+ {{ if .details }}
+ {{- partial "markdown" .details }}
+ {{- end }}
+ {{ if .links }}
+ <ul>
+ {{- range .links }}
+ <li>
+ {{- .prefix -}}
+ <a href="{{ .url }}" class="{{ if and $.useFontAwesome .icon }}no-external-icon{{ end }}">{{ .title }}{{ if and $.useFontAwesome .icon }}<i class="{{ .icon }}"></i>{{ end }}</a>
+ {{- end -}}
+ </li>
+ </ul>
+ {{ end }}
+</div>
+{{ end }}