Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chaotikum
website
Commits
b86e8347
Commit
b86e8347
authored
1 year ago
by
Lukas Ruge
Browse files
Options
Downloads
Patches
Plain Diff
fix bug for events in the future
parent
e1cc60ce
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#12913
passed
1 year ago
Stage: test
Stage: deploy
Stage: validate
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_layouts/frab.xml
+8
-4
8 additions, 4 deletions
_layouts/frab.xml
with
8 additions
and
4 deletions
_layouts/frab.xml
+
8
−
4
View file @
b86e8347
...
...
@@ -18,8 +18,6 @@ Documentation: https://wiki.chaotikum.org/howto:chaotikumwebsite:media (Please u
Finding the first and last talk to establish the variables "earliest" and "latest". Then converting this into a duration in days.
{% endcomment -%}
{% capture earliest %}{{'now' | date: '%s'}}{% endcapture -%}
{% capture latest %}0{% endcapture -%}
{% assign conference_media = site.media | where_exp: "video", "video.conferences contains conference.acronym" -%}
...
...
@@ -43,13 +41,19 @@ Finding the first and last talk to establish the variables "earliest" and "lates
{% if conference.date and recording_date.event != ''%}
{% assign recording_date = conference.date -%}
{% else -%}
{% assign recording_date =
earliest
-%}
{% assign recording_date =
now
-%}
{% endif -%}
{% endif -%}
{% capture recordingdate %}{{recording_date | date: '%s'}}{% endcapture -%}
{% if recordingdate
< earliest
-%}
{% if earliest and earliest != '' -%}
{% if recordingdate
< earliest
-%}
{%
assign
earliest =
recordingdate
-%}
{%
endif
-%}
{%
else
-%}
{%
assign
earliest =
recordingdate
-%}
{%
endif
-%}
{%
if
recordingdate
>
latest -%}
{% assign latest = recordingdate -%}
{% endif -%}
...
...
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