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
Commits
e7f30b60
Commit
e7f30b60
authored
3 years ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4704: fixing featured image on node and title
parent
75c1a510
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!66
ISTWCMS-4704: adding date component with ability to handle multiple dates and...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/_patterns/04-components/card/card.twig
+2
-2
2 additions, 2 deletions
source/_patterns/04-components/card/card.twig
with
2 additions
and
2 deletions
source/_patterns/04-components/card/card.twig
+
2
−
2
View file @
e7f30b60
...
...
@@ -2,7 +2,7 @@
<article
class=
"card
{{
modifier_classes
}}
{%
if
show_hover
%}
card--show-hover
{%
endif
%}
{{
type
}}
"
>
{%
if
featured_image
and
img_element
%}
{%
if
featured_image
==
'yes'
and
img_element
%}
<div
class=
"card__featured-image"
style=
"background-image: url(
{{
img_element
}}
);"
role=
"img"
aria-label=
"
{{
alt
}}
"
>
</div>
{%
endif
%}
...
...
@@ -18,7 +18,7 @@
}
%}
</div>
{%
endif
%}
{%
if
title
or
sub_title
%}
{%
if
(
title
or
sub_title
)
and
featured_image
==
'yes'
%}
{%
if
title
%}
<h
{{
header_level
}}
class=
"card__title"
>
{%
if
url
%}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment