Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_wcms_gesso
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_wcms_gesso
Merge requests
!62
Feature/istwcms 4619 m26lebla theme blog news events listing pages
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/istwcms 4619 m26lebla theme blog news events listing pages
feature/ISTWCMS-4619-m26lebla-Theme-blog-news-events-listing-pages
into
3.0.x
Overview
0
Commits
36
Pipelines
0
Changes
77
Merged
Eric Bremner
requested to merge
feature/ISTWCMS-4619-m26lebla-Theme-blog-news-events-listing-pages
into
3.0.x
3 years ago
Overview
0
Commits
36
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
version 4
version 6
3103d3fe
3 years ago
version 5
8c7326b5
3 years ago
version 4
f70c181b
3 years ago
version 3
14a5bd3e
3 years ago
version 2
2a017d9e
3 years ago
version 1
9d7db790
3 years ago
3.0.x (base)
and
version 5
latest version
26a2998e
36 commits,
3 years ago
version 6
3103d3fe
36 commits,
3 years ago
version 5
8c7326b5
35 commits,
3 years ago
version 4
f70c181b
34 commits,
3 years ago
version 3
14a5bd3e
33 commits,
3 years ago
version 2
2a017d9e
32 commits,
3 years ago
version 1
9d7db790
31 commits,
3 years ago
Show latest version
1 file
+
43
−
41
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
source/_patterns/04-components/card/card.twig
+
43
−
41
Options
{%
import
'@base/macros/uw.macro.twig'
as
macros
%}
<article
class=
"card
{{
modifier_classes
}}
{%
if
show_hover
%}
card--show-hover
{%
endif
%}
{{
type
}}
"
>
<div
class=
"card__body"
>
{%
if
title
or
author
or
date
or
sub_title
%}
<div
class=
"card__header"
>
{%
if
date
%}
@@ -38,62 +40,62 @@
<span
class=
"sub-title"
>
{{
sub_title
}}
</span>
{%
endif
%}
{%
endif
%}
{%
if
author_name
%}
{%
if
author
%}
<div
class=
"card__author"
>
{%
if
author_link
%}
by
<a
href=
"
{{
author_link
}}
"
>
{%
endif
%}
{{
author_name
}}
{%
if
author_link
%}
</a>
{%
if
author.link
%}
<a
href=
"
{{
author.link
}}
"
>
{{
author.name
}}
</a>
{%
else
%}
{{
author.name
}}
{%
endif
%}
</div>
{%
endif
%}
</div>
{%
endif
%}
{%
if
sources
or
img_element
%}
<div
class=
"card__media"
>
{%
if
url
%}
<a
href=
"
{{
url
}}
"
>
<div
class=
"card__content"
>
{%
if
sources
or
img_element
%}
<div
class=
"card__media"
>
{%
if
url
%}
<a
href=
"
{{
url
}}
"
>
{%
endif
%}
{%
include
"@components/responsive-image/responsive-image.twig"
with
{
sources
:
sources
,
img_element
:
img_element
,
alt
:
alt
sources
:
sources
,
img_element
:
img_element
,
alt
:
alt
}
%}
{%
if
url
%}
</a>
{%
endif
%}
</a>
{%
endif
%}
</div>
{%
endif
%}
<div
class=
"card_summary"
>
{{
content
}}
</div>
</div>
{%
endif
%}
<div
class=
"card__content"
>
{{
content
}}
</div>
{%
if
footer
or
read_more
or
tags
or
social_media
%}
{%
if
footer
or
read_more
or
tags
or
card_social_media
%}
<div
class=
"card__footer"
>
{{
footer
}}
{%
if
tags
%}
<div
class=
"card__tags"
>
{%
for
tag
in
tags
%}
{%
include
"@components/tag-list/tag-list.twig"
with
{
items
:
tag
}
%}
{%
endfor
%}
</div>
{%
endif
%}
{%
if
read_more
and
url
%}
<div
class=
"card__readmore"
>
{{
macros.readmore
(
url
,
title
)
}}
</div>
{%
endif
%}
{%
if
social_media
%}
<div
class=
"card__social
{{
social_media_placement
}}
"
>
{%
include
"@components/menu/menu--social/menu--social.twig"
%}
{{
footer
}}
{%
if
tags
%}
<div
class=
"card__tags"
>
{%
for
tag
in
tags
%}
{%
include
"@components/tag-list/tag-list.twig"
with
{
items
:
tag
}
%}
{%
endfor
%}
</div>
{%
endif
%}
{%
if
read_more
and
url
%}
<div
class=
"card__readmore"
>
{{
macros.readmore
(
url
,
title
)
}}
</div>
{%
endif
%}
{%
if
social_media
%}
<div
class=
"card__social
{{
social_media_placement
}}
"
>
{%
include
"@components/menu/menu--social/menu--social.twig"
%}
</div>
{%
endif
%}
</div>
{%
endif
%}
</div>
Loading