diff options
author | Jaakko Kantojärvi <jaakko@n-1.fi> | 2021-03-03 18:29:15 +0300 |
---|---|---|
committer | Jaakko Kantojärvi <jaakko@n-1.fi> | 2021-03-03 19:01:09 +0300 |
commit | 3e13c5ea2daca9cdab0acd7224d1d1c439c03e69 (patch) | |
tree | e06e2cb15a44606c4ff87649a5ef4960f579bde4 /layouts/partials/section-details-list.html | |
parent | 23cd8528c559b2326b343550e21ee08de15005b7 (diff) |
Rewrite all layouts, data and configuration structures
* Add support for multiple pages
* Add support to reorder and move features to columns and pages
* Add support for new sections with generic widgets
Diffstat (limited to 'layouts/partials/section-details-list.html')
-rw-r--r-- | layouts/partials/section-details-list.html | 32 |
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 }} |