Skip to content

Commit c0a5c24

Browse files
authored
Merge pull request #21 from AeroRust/feat/space-conference-plovdiv-2024-and-updates
Feat(events): Space Sonference - Plovdiv (2024)
2 parents 44327f4 + 5a693a0 commit c0a5c24

23 files changed

+870
-440
lines changed

Cargo.lock

+431-435
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/events/space_conference_2024.md

+282
Large diffs are not rendered by default.

frontend/scss/main.scss

+9
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,13 @@
6767
left: 0;
6868
width: 100%;
6969
height: 100%;
70+
}
71+
72+
// menu navbar dropdown - disable hover effect
73+
.nav-item.dropdown .dropdown-item:hover {
74+
background: none;
75+
}
76+
77+
.scroller {
78+
overflow: auto;
7079
}

scraper/config.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ name = "labrador-ldpc"
8282
categories = ["Error correction"]
8383

8484
[[crates]]
85-
name = "YANP"
85+
name = "yanp"
8686
categories = ["Parsers"]
8787

8888
[[crates]]
89-
name = "NMEA"
89+
name = "nmea"
9090
categories = ["Parsers"]
9191

9292
[[crates]]

scraper/src/main.rs

-2
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,13 @@ description = '''
145145
{description}
146146
'''
147147
template = "catalogue/category.html"
148-
slug = "{slug}"
149148
paginate_by = 30
150149
sort_by = "title"
151150
[extra]
152151
icon = "{icon}"
153152
+++"#,
154153
name = category_data.category.name,
155154
description = category_data.category.description,
156-
slug = category_data.slug,
157155
icon = category_data.category.icon,
158156
);
159157

1.14 MB
Loading
Loading
6.89 KB
Loading
Loading
Loading
Loading
Loading
Loading
1.19 MB
Loading
Loading
Loading
Loading
149 KB
Loading

templates/partials/event_side.html

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{# includes ToC + adding entities from a list in the frontmatter of the content markdown #}
2+
<div {# class="position-sticky" #}style="top: 2rem;">
3+
<div class="p-4 mb-3 bg-light text-dark rounded" style="overflow: auto;">
4+
{% if page.extra.show_toc and page.toc %}
5+
<h4 class="fst-italic">Table of contents:</h4>
6+
<ul class="pt-3">
7+
{% for h1 in page.toc %}
8+
<li>
9+
<a href="{{ h1.permalink | safe }}">{{ h1.title | safe }}</a>
10+
{% if h1.children %}
11+
<ul>
12+
{% for h2 in h1.children %}
13+
<li>
14+
<a href="{{ h2.permalink | safe }}">{{ h2.title | safe }}</a>
15+
{% if h2.children %}
16+
<ul>
17+
{% for h3 in h2.children %}
18+
<li>
19+
<a href="{{ h3.permalink | safe }}">{{ h3.title | safe }}</a>
20+
</li>
21+
{% endfor %}
22+
</ul>
23+
{% endif %}
24+
</li>
25+
{% endfor %}
26+
</ul>
27+
{% endif %}
28+
</li>
29+
{% endfor %}
30+
{% for entity in entities -%}
31+
{% if page.extra[entity] and page.extra[entity] | length > 0 %}
32+
{# <li><a href="#{{ entity | slugify }}">{{ trans(key=entity ~ "s" | capitalize) }}</a></li> #}
33+
<li><a href="#{{ entity | lower | slugify }}">{{ entity }}</a></li>
34+
<ul>
35+
{% for entity_type in page.extra[entity] %}
36+
<li><a href="#{{ entity | slugify }}">{{ entity_type.name }}</a></li>
37+
{% endfor %}
38+
</ul>
39+
{% endif -%}
40+
{% endfor %}
41+
</ul>
42+
{% endif %}
43+
</div>
44+
</div>

templates/partials/menu.html

+13
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@
2020
<li><a href="{{ get_url(path="@/_index.md") }}" class="nav-link px-2 text-white{% if get_url(path="@/_index.md") | as_str == current_url %} fw-bold{% endif %}">Home</a></li>
2121
<li><a href="{{ get_url(path="@/blog/_index.md") }}" class="nav-link px-2 text-white{% if get_url(path="@/blog/_index.md") | as_str == current_url %} fw-bold{% endif %}">Blog</a></li>
2222
<li><a href="{{ get_url(path="@/catalogue/_index.md") }}" class="nav-link px-2 text-white{% if get_url(path="@/catalogue/_index.md") | as_str == current_url %} fw-bold{% endif %}">Are we in space yet?</a></li>
23+
<li class="nav-item dropdown">
24+
{% set events_active_paths = [(get_url(path="@/events/space_conference_2024.md") | as_str),] %}
25+
<a class="nav-link dropdown-toggle px-2 text-white{% if events_active_paths is containing(current_url) %} fw-bold{% endif %}" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
26+
Events
27+
</a>
28+
<ul class="dropdown-menu">
29+
{# <li><a class="dropdown-item disabled text-white" aria-disabled="true" href="#">Meetups</a></li> #}
30+
<li><a class="dropdown-item disabled text-white" aria-disabled="true" href="#">Space Conference - Plovdiv (2023)</a></li>
31+
<li><a href="{{ get_url(path="@/events/space_conference_2024.md") }}" class="dropdown-item link-underline-opacity-100-hover> text-white{% if get_url(path="@/events/space_conference_2024.md") | as_str == current_url %} fw-bold{% endif %}">Space Conference - Plovdiv (2024)</a></li>
32+
{# <li><a class="dropdown-item" href="#">Something else here</a></li> #}
33+
</ul>
34+
</li>
35+
{# <li><a href="{{ get_url(path="@/blog/_index.md") }}" class="nav-link px-2 text-white{% if get_url(path="@/blog/_index.md") | as_str == current_url %} fw-bold{% endif %}">Events</a></li> #}
2336
{# <li><a href="{{ get_url(path="@/catalogue/crates.md") }}" class="nav-link px-2 text-white{% if get_url(path="@/catalogue/crates.md") | as_str == current_url %} fw-bold{% endif %}">Crates</a></li> #}
2437
</ul>
2538

templates/shortcodes/img.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{# regular old absolute url or path (discouraged) #}
2+
{% if src %}
3+
{% set src_url = src %}
4+
{% elif get_url_src %}
5+
{% set src_url = get_url(path=get_url_src) %}
6+
{% else %}
7+
{% endif %}
8+
9+
{% if src or get_url_src %}
10+
<img src="{{ src_url }}" {% if class %}class="{{ class }}"{% endif %} {% if alt %}alt="{{ alt }}"{% endif %}>
11+
{% endif %}
12+

templates/shortcodes/youtube.html

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
<div {% if class %}class="{{class}}"{% endif %}>
2+
{% if id %}
23
<iframe src="https://www.youtube-nocookie.com/embed/{{id}}{% if playlist %}?list={{playlist}}{% endif %}{% if autoplay %}?autoplay=1{% endif %}" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
3-
</div>
4+
{% elif playlist %}
5+
<iframe src="https://www.youtube.com/embed/videoseries?list={{playlist}}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
6+
{% else %}
7+
Only video with playlist or playlist are supported. Please provide either `id` or `playlist` to the shortcode!
8+
{% endif %}
9+
</div>

templates/space_conference.html

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{% extends "base.html" %}
2+
3+
4+
{% block title %}{{ page.title }}{% endblock %}
5+
6+
7+
{% block meta -%}
8+
{% if page.extra.meta_image and page.extra.meta_image is starting_with("http") %}
9+
{% set meta_image_url = page.extra.meta_image %}
10+
{% else %}
11+
{% set meta_image_url = get_url(path=page.extra.meta_image) %}
12+
{% endif %}
13+
14+
{% if page.summary is string %}
15+
{% set summary = page.summary %}
16+
{% else %}
17+
{% set summary = "" %}
18+
{% endif %}
19+
20+
{{ meta_macros::facebook_meta(title=page.title, description=summary, url=current_url, image=meta_image_url) }}
21+
{{ meta_macros::twitter_meta(title=page.title, description=summary, image=meta_image_url) }}
22+
{% endblock -%}
23+
24+
{% block content %}
25+
26+
{# organisers, partners, etc. #}
27+
{% set entities = ["Organisers", "Co-organisers", "Partners", "Sponsors"] -%}
28+
29+
<div class="row gx-5 mt-3">
30+
<div class="col-md-8">
31+
<article class="blog-post">
32+
<h1 class="blog-post-title pb-4 mb-4 fst-italic border-bottom">{{ page.title }}</h1>
33+
34+
<img src="{{ get_url(path="/images/events/scp24/space-conference-plovdiv-2024.png") }}" class="img-fluid pb-4" alt="{{ page.title }}">
35+
36+
{{ page.content | safe }}
37+
38+
{% for entity in entities -%}
39+
{% if page.extra[entity] %}
40+
<h3 id="{{ entity | lower | slugify }}" class="mb-3">{{ entity }}</h3>
41+
<div class="row row-cols-2 g-4 mb-5">
42+
{% for entity_type in page.extra[entity] %}
43+
<div class="col">
44+
<div class="card h-100 text-bg-dark bg-white">
45+
<div class="h-100 align-content-center">
46+
{% if entity_type.logo %}
47+
<img src="{{ get_url(path=entity_type.logo) }}" alt="{{ entity_type.name }}" class="card-img p-5">
48+
{% else %}
49+
<svg class="card-img" width="100%" height="300px" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="No picture" preserveAspectRatio="xMidYMid slice" focusable="false"><title>No picture</title><rect width="100%" height="100%" fill="#f8f9fa"></rect><text x="50%" y="50%" dy=".3em" fill="black">No picture</text></svg>
50+
{# <svg class="card-img" width="100%" height="300px" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="No picture" preserveAspectRatio="xMidYMid slice" focusable="false"><title>No picture</title><rect width="100%" height="100%" fill="#f8f9fa"></rect></svg> #}
51+
{% endif %}
52+
</div>
53+
<a href="{{ entity_type.website }}">
54+
<div class="card-img-overlay">
55+
<h4 class="card-title h5 text-decoration-underline" id="{{ entity_type.name | lower | slugify }}">{{ entity_type.name }}</h4>
56+
</div>
57+
</a>
58+
</div>
59+
</div>
60+
{% endfor %}
61+
</div>
62+
{% endif %}
63+
{% endfor %}
64+
</article>
65+
</div>
66+
67+
<div class="col-md-4">
68+
{% include "partials/event_side.html" -%}
69+
</div>
70+
{% endblock content %}

0 commit comments

Comments
 (0)