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
d6ed5308
Commit
d6ed5308
authored
3 years ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4695: fixing displaying/not displaying title on cards
parent
0f54e950
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!63
Tag 3.0.1
,
!56
Feature/istwcms 4695 ebremner theme banners
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/_patterns/04-components/banners/banners.yml
+0
-1
0 additions, 1 deletion
source/_patterns/04-components/banners/banners.yml
source/_patterns/04-components/card/card.twig
+43
-40
43 additions, 40 deletions
source/_patterns/04-components/card/card.twig
with
43 additions
and
41 deletions
source/_patterns/04-components/banners/banners.yml
+
0
−
1
View file @
d6ed5308
...
...
@@ -66,7 +66,6 @@ banners:
type
:
'
image/jpeg'
img_element
:
'
../../../../source/images/president/president_xlarge.jpg'
alt
:
'
Alternative
text'
big_text
:
'
Image3'
link
:
'
http://google.ca'
autoplay
:
1
slide_speed
:
7000
...
...
This diff is collapsed.
Click to expand it.
source/_patterns/04-components/card/card.twig
+
43
−
40
View file @
d6ed5308
...
...
@@ -2,56 +2,59 @@
<article
class=
"card
{{
modifier_classes
}}
{%
if
show_hover
%}
card--show-hover
{%
endif
%}
{{
type
}}
"
>
<div
class=
"card__body"
>
<div
class=
"card__header"
>
{%
if
date
%}
<div
class=
"card__date"
>
{%
if
date
is
iterable
%}
{%
for
d
in
date
%}
{%
if
title
or
author
or
date
%}
<div
class=
"card__header"
>
{%
if
date
%}
<div
class=
"card__date"
>
{%
if
date
is
iterable
%}
{%
for
d
in
date
%}
{%
include
"@base/date-formats/_date-format.twig"
with
{
'date_format'
:
date_format
,
'date'
:
d
}
%}
{%
endfor
%}
{%
else
%}
{%
include
"@base/date-formats/_date-format.twig"
with
{
'date_format'
:
date_format
,
'date'
:
d
'date'
:
d
ate
}
%}
{%
endfor
%}
{%
else
%}
{%
include
"@base/date-formats/_date-format.twig"
with
{
'date_format'
:
date_format
,
'date'
:
date
}
%}
{%
endif
%}
</div>
{%
endif
%}
{%
endif
%}
</div>
{%
endif
%}
{%
if
title
%}
<h
{{
header_level
}}
class=
"card__title"
>
{%
if
url
%}
<a
href=
"
{{
url
}}
"
>
{%
endif
%}
{{
title
}}
{%
if
url
%}
</a>
{%
if
title
%}
<h
{{
header_level
}}
class=
"card__title"
>
{%
if
url
%}
<a
href=
"
{{
url
}}
"
>
{%
endif
%}
{{
title
}}
{%
if
url
%}
</a>
{%
endif
%}
</h
{{
header_level
}}
>
{%
if
sub_title
%}
<span
class=
"sub-title"
>
{{
sub_title
}}
</span>
{%
endif
%}
</h
{{
header_level
}}
>
{%
if
sub_title
%}
<span
class=
"sub-title"
>
{{
sub_title
}}
</span>
{%
endif
%}
{%
endif
%}
{%
if
author_name
%}
<div
class=
"card__author"
>
{%
if
author_link
%}
by
<a
href=
"
{{
author_link
}}
"
>
{%
endif
%}
{%
if
author_name
%}
<div
class=
"card__author"
>
{%
if
author_link
%}
by
<a
href=
"
{{
author_link
}}
"
>
{%
endif
%}
{{
author_name
}}
{{
author_name
}}
{%
if
author_link
%}
</a>
{%
endif
%}
</div>
{%
endif
%}
{%
if
author_link
%}
</a>
{%
endif
%}
</div>
{%
endif
%}
</div>
</div>
{%
endif
%}
{%
if
sources
or
img_element
%}
...
...
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