mirror of
https://github.com/matrix-org/matrix.org.git
synced 2026-01-11 20:07:22 +00:00
Add config options for the conference information banner and disable it since conf is over
This commit is contained in:
parent
5a7ea34237
commit
38b19a5254
4 changed files with 53 additions and 13 deletions
11
config.toml
11
config.toml
|
|
@ -35,3 +35,14 @@ skip_anchor_prefixes = [
|
|||
# Spec page does not have anchors in the html it seems. (Probably loading using js.) This causes a false positive
|
||||
"https://spec.matrix.org/v1.3/changelog/",
|
||||
]
|
||||
|
||||
[extra]
|
||||
banner = false
|
||||
|
||||
# Possible states: "cfp", "awaiting_schedule", "scheduled", "no_tickets", "live", "none"
|
||||
# None is used when elections instead are used
|
||||
conference_state = "none"
|
||||
|
||||
conference_website = "https://2024.matrix.org"
|
||||
conference_dates = "Sep 19-22"
|
||||
conference_location = "Berlin, Germany"
|
||||
|
|
@ -30,10 +30,3 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#elections-banner {
|
||||
width: 100%;
|
||||
padding: .4em 1em;
|
||||
background-color: #ffcb006b;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -429,3 +429,10 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#information-banner {
|
||||
width: 100%;
|
||||
padding: .4em 1em;
|
||||
background-color: #ffcb006b;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
@ -6,12 +6,41 @@
|
|||
{% endblock head_extra %}
|
||||
{% block content %}
|
||||
{% set sponsors_data = load_data(path="content/sponsors.toml") %}
|
||||
<div id="elections-banner">
|
||||
<p>We are happy to launch <a href="https://2024.matrix.org">The Matrix Conference</a> on Sep 19-22 in Berlin,
|
||||
Germany. <a href="https://2024.matrix.org">Learn more</a> about it, <a
|
||||
href="https://2024.matrix.org/register/">buy a
|
||||
ticket</a>, or <a href="https://2024.matrix.org/schedule/">check the schedule</a>!</p>
|
||||
|
||||
{% if config.extra.banner %}
|
||||
<div id="information-banner">
|
||||
{% if config.extra.conference_state == "cfp" %}
|
||||
<p>We are happy to launch <a href="{{ config.extra.conference_website }}">The Matrix Conference</a> on {{
|
||||
config.extra.conference_dates }} in
|
||||
{{ config.extra.conference_location }}. <a href="{{ config.extra.conference_website }}">Learn more</a> about it,
|
||||
or <a href="https://cfp.matrix.org">submit a
|
||||
proposal</a>!</p>
|
||||
{% elif config.extra.conference_state == "awaiting_schedule" %}
|
||||
<p>We are happy to launch <a href="{{ config.extra.conference_website }}">The Matrix Conference</a> on {{
|
||||
config.extra.conference_dates }} in
|
||||
{{ config.extra.conference_location }}. <a href="{{ config.extra.conference_website }}">Learn more</a> about it,
|
||||
<a href="{{ config.extra.conference_website }}/register/">buy a
|
||||
ticket</a>!
|
||||
</p>
|
||||
{% elif config.extra.conference_state == "scheduled" %}
|
||||
<p>We are happy to launch <a href="{{ config.extra.conference_website }}">The Matrix Conference</a> on {{
|
||||
config.extra.conference_dates }} in
|
||||
{{ config.extra.conference_location }}. <a href="{{ config.extra.conference_website }}">Learn more</a> about it,
|
||||
<a href="{{ config.extra.conference_website }}/register/">buy a
|
||||
ticket</a>, or <a href="{{ config.extra.conference_website }}/schedule/">check the schedule</a>!
|
||||
</p>
|
||||
{% elif config.extra.conference_state == "no_tickets" %}
|
||||
<p>We are happy to launch <a href="{{ config.extra.conference_website }}">The Matrix Conference</a> on {{
|
||||
config.extra.conference_dates }} in
|
||||
{{ config.extra.conference_location }}. <a href="{{ config.extra.conference_website }}">Learn more</a> about it,
|
||||
or <a href="{{ config.extra.conference_website }}/schedule/">check the schedule</a>!</p>
|
||||
{% elif config.extra.conference_state == "live" %}
|
||||
<p><a href="{{ config.extra.conference_website }}">The Matrix Conference</a> is Live.
|
||||
<a href="{{ config.extra.conference_website }}/watch/">Check the livestreams</a>!
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="frontpage">
|
||||
<div id="hero" class="section">
|
||||
<div class="hero_content">
|
||||
|
|
@ -73,4 +102,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Reference in a new issue