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
eaedbe84
Commit
eaedbe84
authored
3 years ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4184: updating timeline to use granular year-month-day
parent
14cf3057
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!47
ISTWCMS-4184 m26lebla theme timeline
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/_patterns/04-components/timeline/timeline.twig
+13
-9
13 additions, 9 deletions
source/_patterns/04-components/timeline/timeline.twig
source/_patterns/04-components/timeline/timeline.yml
+97
-76
97 additions, 76 deletions
source/_patterns/04-components/timeline/timeline.yml
with
110 additions
and
85 deletions
source/_patterns/04-components/timeline/timeline.twig
+
13
−
9
View file @
eaedbe84
...
...
@@ -9,7 +9,7 @@
<span
class=
"timeline-year"
>
{{
year
}}
</span>
<ol>
{%
for
month
,
entrie
s
in
timeline_item
%}
{%
for
month
,
day
s
in
timeline_item
%}
{%
if
style
==
'month'
%}
<li>
...
...
@@ -19,15 +19,19 @@
<ol>
{%
endif
%}
{%
for
entr
y
in
entrie
s
%}
{%
for
da
y
in
day
s
%}
<li
class=
"timeline-info"
>
{%
if
entry.image
%}
<img
src=
"
{{
entry.image
}}
"
alt=
""
class=
"timeline-photo"
/>
{%
endif
%}
<div
class=
"timeline-headline"
><strong>
{{
entry.headline
}}
</strong></div>
<p>
{{
entry.content
}}
</p>
</li>
{%
for
entry
in
day
%}
<li
class=
"timeline-info"
>
{%
if
entry.image
%}
<img
src=
"
{{
entry.image
}}
"
alt=
""
class=
"timeline-photo"
/>
{%
endif
%}
<div
class=
"timeline-headline"
><strong>
{{
entry.headline
}}
</strong></div>
<p>
{{
entry.content
}}
</p>
</li>
{%
endfor
%}
{%
endfor
%}
...
...
This diff is collapsed.
Click to expand it.
source/_patterns/04-components/timeline/timeline.yml
+
97
−
76
View file @
eaedbe84
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