Commit 61c623f8 authored by Eric Poirier's avatar Eric Poirier Committed by Christopher Guindon
Browse files

Update news shortcode

parent 21076196
......@@ -24,6 +24,7 @@
{{ $sortOrder := .Get "sortOrder" }}
{{ $sortField := .Get "sortField" }}
{{ $includeLinks := .Get "includeList" }}
{{ $filterId := .Get "filterId" }}
{{ $linksClass := .Get "linksClass" | default "list-inline block-summary-more margin-bottom-40" }}
{{ if not (in (.Page.Scratch.Get "news-container-ids") $id) }}
{{ .Page.Scratch.Add "news-container-ids" (slice $id) }}
......@@ -41,7 +42,8 @@
{{ with $templateId }} data-template-id="{{ . }}" {{ end }}
{{ with $publishTarget }} data-publish-target="{{ . }}"{{ end }}
{{ with $sortField }} data-sort-field="{{ . }}"{{ end }}
{{ with $sortOrder }} data-sort-order="{{ . }}"{{ end }}>
{{ with $sortOrder }} data-sort-order="{{ . }}"{{ end }}
{{ with $filterId }} data-filter-id="{{ . }}"{{ end }}>
</div>
{{ if eq $includeLinks "true" }}
<ul class="{{ $linksClass }}">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment