Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
Webdev
hugo-solstice-theme
Commits
61c623f8
Commit
61c623f8
authored
Apr 28, 2022
by
Eric Poirier
Committed by
Christopher Guindon
Apr 28, 2022
Browse files
Update news shortcode
parent
21076196
Changes
1
Hide whitespace changes
Inline
Side-by-side
layouts/shortcodes/newsroom/news.html
View file @
61c623f8
...
...
@@ -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 }}"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment