Skip to content

Commit 37cc023

Browse files
committed
feat: update social meta tags
- add default meta tag title & description for social media (twitter & fb) - update catalogue & index Signed-off-by: Lachezar Lechev <[email protected]>
1 parent 7e4e39e commit 37cc023

File tree

6 files changed

+33
-18
lines changed

6 files changed

+33
-18
lines changed

config.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,11 @@ rustlang_website = "https://rust-lang.org"
2323
twitter_username = "@AeroRust"
2424
twitter_url = "https://twitter.com/AeroRust"
2525
youtube_url = "https://youtube.com/c/AeroRust"
26-
26+
27+
[extra.default.meta]
28+
title = "Welcome to AeroRust (ÄR) - Your launchpad to space"
29+
description = """
30+
We build the Open-source ecosystem of Rust for aerospace applications.
31+
With more than 400 members and multiple projects in the aerospace domain:
32+
drones, maritime, "Are we in space yet?" crates catalogue and more.
33+
"""

content/_index.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
+++
2-
title = "The AeroRust (ÄR) community"
2+
title = "Welcome to"
33
template = "index.html"
4+
description = """
5+
We build the Open-source ecosystem of Rust for aerospace applications.
6+
With more than 400 members and multiple projects in the aerospace domain:
7+
drones, maritime, "Are we in space yet?" crates catalogue and more.
8+
"""
49
+++

content/catalogue/_index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
+++
2-
title = "Are we in space yet?"
2+
title = "\"Are we in space yet?\" catalogue"
33
description = '''
4-
A catalogue of aerospace crates organized by categories.
4+
A catalogue of crates for aerospace or space applicatoins arranged
5+
by their categories.
56
'''
67
template = "catalogue/index.html"
78
+++

templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
{# Facebook non-required meta tag -#}
1717
<meta property="og:site_name" content="The AeroRust community website">
1818
{% block meta -%}
19-
{{ meta_macros::facebook_meta(title="Welcome!", description="The AeroRust Community website!", url=current_url, image=get_url(path="images/aerorust-ferris.png")) }}
20-
{{ meta_macros::twitter_meta(title="Welcome!", description="The AeroRust Community website!", image=get_url(path="images/aerorust-ferris.png")) }}
19+
{{ meta_macros::facebook_meta(title=config.extra.default.meta.title, description=config.extra.default.meta.description, url=current_url, image=get_url(path="images/aerorust-ferris.png")) }}
20+
{{ meta_macros::twitter_meta(title=config.extra.default.meta.title, description=config.extra.default.meta.description, image=get_url(path="images/aerorust-ferris.png")) }}
2121
{% endblock -%}
2222
</head>
2323

templates/catalogue/index.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
{% extends "base.html" %}
22

3-
{% block title %}Are we in space yet? catalogue{% endblock title %}
3+
{% block title %}{{ section.title }}{% endblock title %}
44

5-
{% block content %}
5+
{% block meta %}
6+
{{ meta_macros::facebook_meta(url=current_url, title=section.title, type="website", description=section.description, image=get_url(path="images/aerorust-ferris.png")) }}
7+
{{ meta_macros::twitter_meta(title=section.title, description=section.description, image=get_url(path="images/aerorust-ferris.png")) }}
8+
{% endblock %}
69

10+
{% block content %}
711
<div class="my-4 text-center">
812
<img class="d-block mx-auto mb-4" src="{{ get_url(path="images/cargo.png") }}" alt="" width="72" height="72">
913
<h1 class="display-5 fw-bold">Are we <strong class="text-aerorust-light">in space</strong> yet?</h1>
1014
<h2>Yes! There is some Rust in space!</h2>
1115
<div class="col-lg-8 mx-auto">
1216
<p class="lead mb-4">
13-
This is a catalogue of crates (Rust's libraries) separated by in their categories.
14-
Only categories related to aerospace or space applications are included in this list
15-
and they are automatically extracted for <a href="https://crates.io">crates.io</a>
17+
This is a catalogue of crates (Rust's libraries) arranged in categories.
18+
Only categories for aerospace or space applications are included in this list
19+
and they are automatically populated using <a href="https://crates.io">crates.io</a>
1620
- the official crates registry.
1721
</p>
1822
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
@@ -37,7 +41,6 @@ <h5 class="card-title">{{ category_section.title }}</h5>
3741
</div>
3842
</a>
3943
</div>
40-
{% endfor -%}
44+
{% endfor -%}
4145
</div>
42-
4346
{% endblock content %}

templates/index.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{% extends "base.html" %}
22

3-
{% block title %}Home{% endblock title %}
3+
{% block title %}{{ section.title }}{% endblock title %}
44

55
{% block meta %}
6-
{{ meta_macros::facebook_meta(url=current_url, title="Welcome!", type="website", description="Welcome to the AeroRust community website!", image=get_url(path="images/aerorust-ferris.png")) }}
7-
{{ meta_macros::twitter_meta(title="Welcome!", description="Welcome to the AeroRust community website!", image=get_url(path="images/aerorust-ferris.png")) }}
6+
{{ meta_macros::facebook_meta(url=current_url, title="Welcome to AeroRust (ÄR) - Your launchpad to space", type="website", description=section.description, image=get_url(path="images/aerorust-ferris.png")) }}
7+
{{ meta_macros::twitter_meta(title="Welcome to AeroRust (ÄR) - Your launchpad to space", description=section.description, image=get_url(path="images/aerorust-ferris.png")) }}
88
{% endblock %}
99

1010
{% block content %}
11-
1211
<div class="col-xxl-8 py-4 text-gray-300">
1312
<div class="row flex-lg-row-reverse align-items-center g-5">
1413
<div class="col-10 col-sm-12 col-lg-6 mx-auto">
@@ -26,7 +25,7 @@ <h1 class="display-5 fw-bold lh-1 mb-3">Welcome to the <strong class="text-aeror
2625
Rust has many compelling features and benefits over other languages used in these industries,
2726
including easily interoperable with other languages and tool chains.
2827
<br>
29-
<a href="#learn-more" class="fw-bold">Learn more...</a>
28+
{# <a href="#learn-more" class="fw-bold">Learn more...</a> #}
3029
</p>
3130
<div class="d-grid gap-2 d-md-flex justify-content-md-start">
3231
<a href="{{ config.extra.github_org | safe }}" target="_blank" class="btn btn-outline-light btn-lg px-4 me-md-2"><i

0 commit comments

Comments
 (0)