Skip to content

Commit 39ef0ee

Browse files
committed
feat: add show_quote & update blog
- add extra option for showing a quote from the blog - override social media meta tags for the blog - update blog's description (for social media meta tags) - update blog side text Signed-off-by: Lachezar Lechev <[email protected]>
1 parent 37cc023 commit 39ef0ee

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

content/blog/_index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
+++
22
title = "Community Blog"
3+
description = """
4+
This blog will cover various topics and familiarize the reader with different
5+
aspects of the development of such systems.
6+
You will also find updates on current and future efforts, projects, events happening in the community.
7+
"""
38
template = "blog.html"
49
draft = true
510
paginate_by = 12

templates/blog.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
{% block title %}{{ section.title }}{% endblock %}
44

5+
{% block meta %}
6+
{{ meta_macros::facebook_meta(url=current_url, title=section.title ~ " - AeroRust (ÄR)", type="website", description=section.description, image=get_url(path="images/aerorust-ferris.png")) }}
7+
{{ meta_macros::twitter_meta(title=section.title ~ " - AeroRust (ÄR)", description=section.description, image=get_url(path="images/aerorust-ferris.png")) }}
8+
{% endblock %}
9+
510
{% block content %}
611
{# <div class="p-3 mt-3 p-md-4 mb-3 text-bg-light rounded">
712
<div class="col-md-8 px-0">
@@ -11,7 +16,6 @@ <h2 class="display-6 fst-italic">Title of a longer featured blog post</h1>
1116
<p class="lead mb-0"><a href="#" class="fw-bold">Continue reading...</a></p>
1217
</div>
1318
</div> #}
14-
1519
<div class="row gx-5 gy-0 mt-3">
1620
<div class="col-md-8">
1721
<h3 class="pb-4 mb-4 border-bottom">
@@ -23,21 +27,17 @@ <h3 class="pb-4 mb-4 border-bottom">
2327
<h2 class="blog-post-title mb-1"><a href="{{ post.permalink | safe }}">{{ post.title }}</a></h2>
2428
<p class="blog-post-meta">{{ post.date | date(format="%B %e, %Y") }} by
2529
{{ authors::comma_separated(authors=post.extra.author) }}
26-
{# {% for author in post.extra.author %}
27-
{{ author.name }} ( <a href="https://twitter.com/{{ author.twitter}}" target="_blank">
28-
<i class="bi bi-twitter pe-1"></i>@{{ author.twitter }}</a> |
29-
<a href="https://github.com/{{ author.github}}" target="_blank"><i class="bi bi-github pe-1"></i>{{ author.github }}</a> ) {% if not loop.last %},{% endif %}
30-
31-
{% endfor %} #}
3230
</p>
3331

3432
<p>{{ post.description }}</p>
3533

36-
{# <blockquote class="blockquote"> #}
37-
<p class="fst-italic">
38-
"{{ post.content | striptags | truncate(length=300) }}..."
39-
</p>
40-
{# </blockquote> #}
34+
{# <blockquote class="blockquote"> #}
35+
{% if post.extra.show_quote %}
36+
<p class="fst-italic">
37+
"{{ post.content | striptags | truncate(length=300) }}..."
38+
</p>
39+
{% endif %}
40+
{# </blockquote> #}
4141
</article>
4242
{% endfor -%}
4343
{% if paginator.number_pagers > 1 -%}

templates/partials/blog_side.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<div class="position-sticky" style="top: 2rem;">
22
<div class="p-4 mb-3 bg-light text-dark rounded">
33
<h4 class="fst-italic">About</h4>
4-
<p class="mb-0">
4+
<p class="mb-2">
55
The space and aerospace industries are multidisciplinary, as such, it's challenging for an individual
6-
to fully grasp and build a complex system.
6+
to fully grasp and build a complex and complete system.
7+
The content in this blog will cover various topics and familiarize the reader with different
8+
aspects of the development of such systems.
79
</p>
810
<p class="mb-0">
9-
The content in this blog aims to cover various topics and familiarize the reader with different
10-
aspects of the development of such systems. Above all, it's related to the community goals
11-
and the Rust programming language.
11+
Above all, the content is related to the community efforts and the Rust programming language,
12+
as such, you'll also find updates on current and future efforts, projects, events and so on.
1213
</p>
1314
</div>
1415

0 commit comments

Comments
 (0)