Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hifis.net
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HIFIS
Overall
hifis.net
Commits
45f9f782
Commit
45f9f782
authored
3 years ago
by
Uwe Jandt (DESY, HIFIS)
Browse files
Options
Downloads
Patches
Plain Diff
switch events and news on frontpage
parent
41d00d0a
No related branches found
Branches containing commit
No related tags found
2 merge requests
!203
WIP: Test MR
,
!177
HIFIS unified step 1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_layouts/frontpage.html
+35
-36
35 additions, 36 deletions
_layouts/frontpage.html
with
35 additions
and
36 deletions
_layouts/frontpage.html
+
35
−
36
View file @
45f9f782
...
@@ -58,6 +58,41 @@
...
@@ -58,6 +58,41 @@
-->
-->
<section>
<section>
<div
class=
"info-col"
>
<div
class=
"info-col"
>
<div
class=
"frontpage-jumbotron"
>
<h1><a
href=
"{{ 'events' | relative_url }}"
><i
class=
"far fa-calendar-alt"
aria-hidden=
"true"
></i>
Events
</a></h1>
<div
class=
"flex-content-wrapper"
>
{% assign sorted_events = site.events | sort: "start.date" %}
{% assign today = "now" | date: "%Y-%m-%d" %}
{% assign has_upcoming_events = false %}
{% for event in sorted_events %}
{% if event.start.date
<
today
or
event.registration_period.to
<
today
%}
{%
continue
%}
{%
else
%}
{%
assign
has_upcoming_events =
true
%}
{%
endif
%}
{%
include
frontpage
/
event-card.html
title =
event.excerpt
%}
{%
assign
events_counter =
events_counter|plus:1
%}
{%
if
events_counter
>
= 3 %}
{% break %}
{% endif %}
{% endfor %}
{% if has_upcoming_events == false %}
<article
class=
"list-entry"
>
<h1>
There are no upcoming events right now ... stay tuned.
</h1>
</article>
{% endif %}
</div>
<a
href=
"{{ 'events' | relative_url }}"
class=
"btn btn-outline-secondary"
>
All Events
</a>
<a
class=
"btn btn-outline-secondary"
href=
"{{ '/feed/events.xml' | relative_url }}"
title=
"Subscribe to HIFIS Events Feed"
type=
"application/atom+xml"
download
>
Events Feed
<i
class=
"fas fa-rss"
></i></a>
</div>
<div
class=
"frontpage-jumbotron"
>
<div
class=
"frontpage-jumbotron"
>
{% if page.notification.description and page.notification.title %}
{% if page.notification.description and page.notification.title %}
{% include frontpage/notification.html
{% include frontpage/notification.html
...
@@ -95,42 +130,6 @@
...
@@ -95,42 +130,6 @@
download
>
download
>
News Feed
<i
class=
"fas fa-rss"
></i></a>
News Feed
<i
class=
"fas fa-rss"
></i></a>
</div>
</div>
<div
class=
"frontpage-jumbotron"
>
<h1><a
href=
"{{ 'events' | relative_url }}"
><i
class=
"far fa-calendar-alt"
aria-hidden=
"true"
></i>
Events
</a></h1>
<div
class=
"flex-content-wrapper"
>
{% assign sorted_events = site.events | sort: "start.date" %}
{% assign today = "now" | date: "%Y-%m-%d" %}
{% assign has_upcoming_events = false %}
{% for event in sorted_events %}
{% if event.start.date
<
today
or
event.registration_period.to
<
today
%}
{%
continue
%}
{%
else
%}
{%
assign
has_upcoming_events =
true
%}
{%
endif
%}
{%
include
frontpage
/
event-card.html
title =
event.excerpt
%}
{%
assign
events_counter =
events_counter|plus:1
%}
{%
if
events_counter
>
= 3 %}
{% break %}
{% endif %}
{% endfor %}
{% if has_upcoming_events == false %}
<article
class=
"list-entry"
>
<h1>
There are no upcoming events right now ... stay tuned.
</h1>
</article>
{% endif %}
</div>
<a
href=
"{{ 'events' | relative_url }}"
class=
"btn btn-outline-secondary"
>
All Events
</a>
<a
class=
"btn btn-outline-secondary"
href=
"{{ '/feed/events.xml' | relative_url }}"
title=
"Subscribe to HIFIS Events Feed"
type=
"application/atom+xml"
download
>
Events Feed
<i
class=
"fas fa-rss"
></i></a>
</div>
</div>
</div>
</section>
</section>
...
...
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