Skip to content
Snippets Groups Projects
frontpage.html 2.97 KiB
Newer Older
Erxleben, Fredo's avatar
Erxleben, Fredo committed
{% include top.html %}

<body>

    {% include header.html %}

    <main>

        {% include title_image.html %}
Erxleben, Fredo's avatar
Erxleben, Fredo committed

        <div class="frontpage-jumbotron">
            <section>
                {% if page.notification.description and page.notification.title %}
                    {% include frontpage/notification.html
                            title=page.notification.title
                            description=page.notification.description %}
                {% endif %}
                <h1><i class="fas fa-blog" aria-hidden="true"></i>&nbsp; Latest posts</h1>
                <div class="flex-content-wrapper">
                    {% for post in site.posts limit:3 %}
                    {% include frontpage/post-card.html post = post %}
                    {% endfor %}
                </div>
                <a href="{{ 'blog/' | relative_url }}" class="btn btn-outline-secondary">More</a>
            </section>
        </div>
        <div class="frontpage-mission-jumbotron">

            <section>
                <h1>The Mission</h1>
                <p class="lead">HIFIS Software Services' mission is to empower scientists of any domain to implement
                    and
                    to perpetuate modern scientific software development principles in order to
                    make research software engineering more sustainable.</p>
                <p>
                    <a href="{{ 'faq' | relative_url }}" class="btn btn-outline-light">
                        <i class="fas fa-question-circle" aria-hidden="true"></i> FAQ
                    </a>
                </p>
            </section>
        </div>
        <div class="frontpage-jumbotron">
            <section>
                <h1><i class="far fa-calendar-alt" aria-hidden="true"></i>&nbsp; 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 %}
                    {% endfor %}
                    {% if has_upcoming_events == false %}
                        <article class="list-entry">
                            <h1>
                                There are no upcoming events right now ... stay tuned.
                            </h1>
                        </article>
                    {% endif %}
                </div>
            </section>
        </div>
        </section>
    </main>

    {% include footer.html %}

</body>

</html>