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
d2cf56d7
Commit
d2cf56d7
authored
4 years ago
by
Uwe Jandt (DESY, HIFIS)
Browse files
Options
Downloads
Patches
Plain Diff
very rough 2 lane design for news vs events
parent
cf8660e2
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
+74
-74
74 additions, 74 deletions
_layouts/frontpage.html
with
74 additions
and
74 deletions
_layouts/frontpage.html
+
74
−
74
View file @
d2cf56d7
...
...
@@ -11,82 +11,82 @@
{% endcapture %}
{%- include title_image.html content=title-content -%}
<section>
<div
class=
"info-col"
>
<div
class=
"frontpage-wide-jumbotron"
>
<section>
{% if page.notification.description and page.notification.title %}
{% include frontpage/notification.html
title=page.notification.title
description=page.notification.description %}
{% endif %}
<h1>
News, Announcements, Blogs
<section>
<div
class=
"info-col"
>
<div
class=
"frontpage-wide-jumbotron"
>
<section>
{% if page.notification.description and page.notification.title %}
{% include frontpage/notification.html
title=page.notification.title
description=page.notification.description %}
{% endif %}
<h1>
News, Announcements, Blogs
</h1>
<div
class=
"flex-cards"
>
{%- assign posts = site.posts | where:"lang", site.default.lang -%}
{%- for post in posts limit:3 -%}
{%- assign post_translated = site.categories[page.lang] | where_exp: "item", "post.lang_ref == item.lang_ref" | first -%}
{%- if forloop.index
<
4
-
%}
{%
-
assign
class=
""
-
%}
{%
-
else
-
%}
{%
-
assign
class=
"hide-on-mobile"
-
%}
{%
-
endif
-
%}
{%
-
if
post_translated
-
%}
{%
-
include
cards
/
post_card.html
post=
post_translated
class=
class
-
%}
{%
-
else
-
%}
{%
-
include
cards
/
post_card.html
post=
post
class=
class
-
%}
{%
-
endif
-
%}
{%
-
endfor
-
%}
</
div
>
<a
href=
"{{ 'news/' | relative_url }}"
class=
"btn btn-outline-secondary"
>
All HIFIS News
</a>
<a
href=
"https://lists.desy.de/sympa/subscribe/hifis-announce"
class=
"btn btn-outline-secondary"
title=
"Subscribe to HIFIS Announcements Letter - also unsubscribe"
>
Subscribe
<i
class=
"fas fa-bell"
></i></a>
<a
class=
"btn btn-outline-secondary"
href=
"{{ '/feed/news.xml' | relative_url }}"
title=
"Subscribe to HIFIS News Feed"
type=
"application/atom+xml"
download
>
RSS Feed
<i
class=
"fas fa-rss"
></i></a>
</section>
</div>
<div
class=
"frontpage-jumbotron"
>
<section>
<h1><i
class=
"far fa-calendar-alt"
aria-hidden=
"true"
></i>
Events
</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 %}
</h1>
<div
class=
"flex-cards"
>
{%- assign posts = site.posts | where:"lang", site.default.lang -%}
{%- for post in posts limit:3 -%}
{%- assign post_translated = site.categories[page.lang] | where_exp: "item", "post.lang_ref == item.lang_ref" | first -%}
{%- if forloop.index
<
4
-
%}
{%
-
assign
class=
""
-
%}
{%
-
else
-
%}
{%
-
assign
class=
"hide-on-mobile"
-
%}
{%
-
endif
-
%}
{%
-
if
post_translated
-
%}
{%
-
include
cards
/
post_card.html
post=
post_translated
class=
class
-
%}
{%
-
else
-
%}
{%
-
include
cards
/
post_card.html
post=
post
class=
class
-
%}
{%
-
endif
-
%}
{%
-
endfor
-
%}
</
div
>
<a
href=
"{{ 'news/' | relative_url }}"
class=
"btn btn-outline-secondary"
>
All HIFIS News
</a>
<a
href=
"https://lists.desy.de/sympa/subscribe/hifis-announce"
class=
"btn btn-outline-secondary"
title=
"Subscribe to HIFIS Announcements Letter - also unsubscribe"
>
Subscribe
<i
class=
"fas fa-bell"
></i></a>
<a
class=
"btn btn-outline-secondary"
href=
"{{ '/feed/news.xml' | relative_url }}"
title=
"Subscribe to HIFIS News Feed"
type=
"application/atom+xml"
download
>
RSS Feed
<i
class=
"fas fa-rss"
></i></a>
</section>
</div>
<a
href=
"{{ 'events/' | relative_url }}"
class=
"btn btn-outline-secondary"
>
All Events
</a>
</section>
</div>
</div>
</section>
<div
class=
"frontpage-jumbotron"
>
<section>
<h1><i
class=
"far fa-calendar-alt"
aria-hidden=
"true"
></i>
Events
</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>
</section>
</div>
</div>
</section>
<div
class=
"transition-block"
>
...
...
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