Skip to content

Commit 934f29f

Browse files
committed
config - update base_url & add safe to urls
1 parent 2db96ea commit 934f29f

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The URL the site will be built for
2-
base_url = "https://aerorust.github.io"
2+
base_url = "https://aerorust.org"
33

44
# Whether to automatically compile all Sass files in the sass directory
55
compile_sass = false

templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<link rel="icon" type="image/png" href="{{ get_url(path="images/favicon-32x32.png") }}" sizes="32x32">
1212
<link rel="icon" type="image/png" href="{{ get_url(path="images/favicon-16x16.png") }}" sizes="16x16">
13-
<link rel="canonical" href="{{ current_url }}">
13+
<link rel="canonical" href="{{ current_url | safe }}">
1414

1515
{# Facebook non-required meta tag -#}
1616
<meta property="og:site_name" content="The AeroRust community website">

templates/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="col-lg-6">
1919
<h1 class="display-5 fw-bold lh-1 mb-3">Welcome to the <strong class="text-aerorust-light">AeroRust</strong> community</h1>
2020
<p class="lead">
21-
Our community aims to grow the <a href="{{ config.extra.rustlang_website }}" target="_blank" class="fw-bold">Rust</a>
21+
Our community aims to grow the <a href="{{ config.extra.rustlang_website | safe }}" target="_blank" class="fw-bold">Rust</a>
2222
programming language ecosystem for aerospace applications because it
2323
"empowers everyone to build reliable and efficient software".
2424
</p>
@@ -29,9 +29,9 @@ <h1 class="display-5 fw-bold lh-1 mb-3">Welcome to the <strong class="text-aeror
2929
<a href="#learn-more" class="fw-bold">Learn more...</a>
3030
</p>
3131
<div class="d-grid gap-2 d-md-flex justify-content-md-start">
32-
<a href="{{ config.extra.github_org }}" target="_blank" class="btn btn-outline-light btn-lg px-4 me-md-2"><i
32+
<a href="{{ config.extra.github_org | safe }}" target="_blank" class="btn btn-outline-light btn-lg px-4 me-md-2"><i
3333
class="bi bi-github me-2"></i>Github</a>
34-
<a href="{{ config.extra.discord_invite }}" target="_blank" class="btn btn-outline-light btn-lg px-4 position-relative"><i
34+
<a href="{{ config.extra.discord_invite | safe }}" target="_blank" class="btn btn-outline-light btn-lg px-4 position-relative"><i
3535
class="bi bi-discord me-2"></i>Join Discord
3636
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
3737
{{ config.extra.discord_members_count }}<span class="visually-hidden">members</span>

templates/macros/meta.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<meta property="og:locale:alternate" content="fr_FR" />
1212
<meta property="og:locale:alternate" content="es_ES" />
1313
<meta property="og:site_name" content="IMDb" /> -#}
14-
<meta property="og:url" content="{{ url }}" />
14+
<meta property="og:url" content="{{ url | safe }}" />
1515
{% if image != "" -%}
16-
<meta property="og:image" content="{{ image }}" />
16+
<meta property="og:image" content="{{ image | safe }}" />
1717
{% endif -%}
1818
{% endmacro %}
1919

@@ -25,9 +25,9 @@
2525
<meta name="twitter:description" content="{{ description }}">
2626
{% endif -%}
2727
{% if image != "" -%}
28-
<meta name="twitter:image" content=" {{ image }}">
28+
<meta name="twitter:image" content=" {{ image | safe }}">
2929
{% if image_alt != "" -%}
30-
<meta name="twitter:image" content=" {{ image }}">
30+
<meta name="twitter:image" content=" {{ image | safe }}">
3131
{% endif -%}
3232
{% endif -%}
3333
<meta name="twitter:card" content="{{ card }}">

templates/partials/blog_side.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h4 class="fst-italic">About</h4>
1414

1515
<div class="mt-3">
1616
<a href="mailto:{{ config.extra.email }}"><i class="bi bi-envelope-fill pe-1"></i>Email us</a>
17-
or <a href="{{ config.extra.github_propose_blog_post }}"><i class="bi bi-github pe-1"></i>open an issue</a>
17+
or <a href="{{ config.extra.github_propose_blog_post | safe }}"><i class="bi bi-github pe-1"></i>open an issue</a>
1818
if you'd like to feature a blog post related to aerospace or the space industries.
1919
</div>
2020

templates/partials/footer.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<ul class="nav justify-content-center border-bottom pb-2 mb-2">
33
<li class="nav-item"><a href="{{ get_url(path="@/_index.md") }}" class="nav-link px-2 text-muted">Home</a></li>
44
<li class="nav-item"><a href="{{ get_url(path="@/catalogue/_index.md") }}" class="nav-link px-2 text-muted">Are we in space yet?</a></li>
5-
<li class="nav-item"><a href="{{ config.extra.github_org }}" class="nav-link px-2 text-muted"><i class="bi bi-github me-1"></i>Github</a></li>
6-
<li class="nav-item"><a href="{{ config.extra.discord_invite }}" class="nav-link px-2 text-muted"><i class="bi bi-discord me-1"></i>Discord</a></li>
7-
<li class="nav-item"><a href="{{ config.extra.twitter_url }}" class="nav-link px-2 text-muted"><i class="bi bi-twitter me-1"></i>Twitter</a></li>
8-
<li class="nav-item"><a href="{{ config.extra.youtube_url }}" class="nav-link px-2 text-muted"><i class="bi bi-youtube me-1"></i>Youtube</a></li>
5+
<li class="nav-item"><a href="{{ config.extra.github_org | safe }}" class="nav-link px-2 text-muted"><i class="bi bi-github me-1"></i>Github</a></li>
6+
<li class="nav-item"><a href="{{ config.extra.discord_invite | safe }}" class="nav-link px-2 text-muted"><i class="bi bi-discord me-1"></i>Discord</a></li>
7+
<li class="nav-item"><a href="{{ config.extra.twitter_url | safe }}" class="nav-link px-2 text-muted"><i class="bi bi-twitter me-1"></i>Twitter</a></li>
8+
<li class="nav-item"><a href="{{ config.extra.youtube_url | safe }}" class="nav-link px-2 text-muted"><i class="bi bi-youtube me-1"></i>Youtube</a></li>
99
{# <li class="nav-item"><a href="#" class="nav-link px-2 text-muted">About</a></li> #}
1010
</ul>
1111
<p class="text-center">© {{ now(utc=true) | date(format="%Y") }} AeroRust (&#196;R) community</p>

templates/partials/menu.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="{{ config.extra.github_repo }}" class="github-corner">
1+
<a href="{{ config.extra.github_repo | safe }}" class="github-corner">
22
<svg width="80" height="80" viewBox="0 0 250 250"
33
style="fill:#fff; color:#151513; position: absolute; top: 0; border: 0; left: 0; transform: scale(-1, 1);">
44
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>

0 commit comments

Comments
 (0)