Skip to content

Commit

Permalink
add categories support
Browse files Browse the repository at this point in the history
  • Loading branch information
dsonyy committed Nov 2, 2024
1 parent c8047f0 commit a1f66e2
Show file tree
Hide file tree
Showing 26 changed files with 194 additions and 91 deletions.
15 changes: 0 additions & 15 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,11 @@ excerpt_separator: <!--more-->
# Keywords
keywords: ["seo", "key", "words"]

# Analytics (Plausible requires sign-up)
analytics:
plausible:
enabled: false
site_fqdn: "your.site.fqdn"
script_source: "https://plausible.io/js/script.js"

# Styling
sass:
sass_dir: _sass
style: expanded # compact, expanded or compressed

# Category Paginating
autopages:
enabled: true
categories:
title: "Posts in category :cat"
permalink: "/category/:cat"
silent: false

# Exclusions
exclude: ["README.md", "LICENSE"]

Expand Down
10 changes: 0 additions & 10 deletions _data/nav.yml

This file was deleted.

34 changes: 34 additions & 0 deletions _draft/2022-04-02-Kalman.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: Kalman
categories: earth students education
layout: post
read_more: false
rover:
org:
text: AGH Space Systems
link: https://spacesystems.agh.edu.pl/
mission:
text: Rover Challenge series
launch:
text: 2018
destination:
text: Earth
status:
text: Active
weight:
text: 50 kg
dimensions:
text: 1.2 x 1.2 x 1.2 m
---

<figure>
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/kalman/1.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/kalman/2.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/kalman/3.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/kalman/4.jpg" />
<figcaption>Photos by <a href="https://www.ksaf.pl/">KSAF AGH</a>.</figcaption>
</figure>

Kalman is one of two planetary rovers built by [AGH Space Systems](https://spacesystems.agh.edu.pl/), following the earlier [Phobos](#phobos) model with advanced new technical solutions. This agile, four-wheeled research vehicle features vision systems for remote control and terrain documentation. It’s equipped with a manipulator for handling objects, performing basic repairs, and operating control panels, as well as a mobile lab for soil sample analysis.

<!--more-->
4 changes: 4 additions & 0 deletions _includes/category.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<h1>Rovers in #{{ page.category }} category</h1>

{% for post in site.categories[page.category] %} {% include post.html post=post
%} {% endfor %}
6 changes: 1 addition & 5 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<div class="footer">
<span class="footer-text float-left">Some rights reserved.</span>
<span class="footer-text float-right">
last update: {{ site.time | date: '%Y-%m-%d' }} (<a
href="/feed.xml"
target="_blank"
>RSS</a
>)
last update: {{ site.time | date: '%Y-%m-%d' }}
</span>
</div>
38 changes: 28 additions & 10 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% seo %}
{% if site.keywords or page.tags %}
<meta name="keywords" content="{% if page.tags %}{{ page.tags | join: ','}}{% else %}{{ site.keywords | join: ',' }}{% endif %}" />
{% seo %} {% if site.keywords or page.tags %}
<meta
name="keywords"
content="{% if page.tags %}{{ page.tags | join: ','}}{% else %}{{ site.keywords | join: ',' }}{% endif %}"
/>
{% endif %}
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/styles.css" />
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/prism.css" />
<link
href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="shortcut icon" href="{{ site.baseurl }}/favicon.ico" />
<link rel="apple-touch-icon" href="{{ site.baseurl }}/favicon.ico" />
<link
rel="stylesheet"
type="text/css"
href="{{ site.baseurl }}/assets/css/styles.css"
/>
<link
rel="stylesheet"
type="text/css"
href="{{ site.baseurl }}/assets/css/prism.css"
/>
<script src="{{ site.baseurl }}/assets/js/prism.js"></script>
{% if site.analytics.plausible.enabled %}
<script defer data-domain="{{ site.analytics.plausible.site_fqdn }}" src="{{ site.analytics.plausible.script_source }}"></script>
{% endif %}
{% if site.analytics.plausible.enabled %}
<script
defer
data-domain="{{ site.analytics.plausible.site_fqdn }}"
src="{{ site.analytics.plausible.script_source }}"
></script>
{% endif %}
15 changes: 10 additions & 5 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
<p>Welcome to...</p>
</div>
<h1>awesome rovers</h1>
<div class="short">
<p>Your ultimate guide to rovers from across the world and beyond!</p>
<div class="long">
<p>
The world of rovers is as diverse as it is inspiring. These remarkable
machines showcase the power of space exploration and research by
performing complex, specialized tasks.
</p>
</div>
<div class="long">
<p>
From NASA's legendary explorers to student-built machines, DIY projects,
and educational marvels. Dive in, explore, and uncover the incredible
innovation driving our exploration of new frontiers!
On this page, you'll find not only advanced rovers from major space
agencies but also creative projects from students and enthusiasts. While
not always perfect, these projects demonstrate that building your own
rover is achievable for anyone and limited only by your creativity!
</p>
</div>
{% include nav.html %}
Expand Down
6 changes: 4 additions & 2 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<nav>
{% for item in site.data.nav %}
<a href="{{ item.link }}">{{ item.name }}</a> {% endfor %}
<a href="{{ site.url }}{{ site.baseurl }}/">Home</a>
<a href="{{ site.url }}{{ site.baseurl }}/category/earth">Earth</a>
<a href="{{ site.url }}{{ site.baseurl }}/category/moon">Moon</a>
<a href="{{ site.url }}{{ site.baseurl }}/category/mars">Mars</a>
</nav>
14 changes: 14 additions & 0 deletions _includes/post.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<div class="post">
<!-- post title -->
<h2>{{ post.title }}</h2>

<!-- categories -->
<div class="tags">
{% for cat in post.categories %}
<a><span>#{{ cat }}</span></a>
{% endfor %}
</div>

<!-- table with detailed info -->
<div class="info">
{% for param in post.rover %}
<div>{{ param[0] }}:</div>
Expand All @@ -9,9 +19,13 @@ <h2>{{ post.title }}</h2>
<div>{{ param[1].text }}</div>
{% endif %} {% endfor %}
</div>

<!-- post summary -->
<div class="content">
<p>{{ post.excerpt }}</p>
</div>

<!-- optional readme button, if more content exists -->
{% if post.read_more %}
<div class="read-more">
<a href="{{ post.url }}">➡️ Read more...</a>
Expand Down
17 changes: 10 additions & 7 deletions _posts/2022-04-02-Kalman.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: post
title: Kalman
categories: earth students education
layout: post
read_more: false
rover:
org:
Expand All @@ -10,19 +11,21 @@ rover:
text: Rover Challenge series
launch:
text: 2018
location:
text: Earth, Poland, Kraków
destination:
text: Earth
status:
text: Active
weight:
text: 50 kg
dimensions:
text: 1.2 x 1.2 x 1.2 m
---

<figure>
<img src="assets/img/kalman/1.jpg" />
<img src="assets/img/kalman/2.jpg" />
<img src="assets/img/kalman/3.jpg" />
<img src="assets/img/kalman/4.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/kalman/1.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/kalman/2.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/kalman/3.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/kalman/4.jpg" />
<figcaption>Photos by <a href="https://www.ksaf.pl/">KSAF AGH</a>.</figcaption>
</figure>

Expand Down
7 changes: 4 additions & 3 deletions _posts/2022-04-02-Lego-42158.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: post
title: LEGO 42158
categories: earth toy
rover:
org:
text: LEGO
Expand All @@ -20,9 +21,9 @@ rover:
---

<figure>
<img src="assets/img/lego-42158/1.webp" />
<img src="assets/img/lego-42158/2.webp" />
<img src="assets/img/lego-42158/3.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/lego-42158/1.webp" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/lego-42158/2.webp" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/lego-42158/3.jpg" />
<figcaption>Photos by <a href="https://www.lego.com/en-us/product/nasa-mars-rover-perseverance-42158">LEGO</a>.</figcaption>
</figure>

Expand Down
7 changes: 4 additions & 3 deletions _posts/2022-04-02-Phobos.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: post
author: tajacks
title: Phobos
categories: earth students education
rover:
org:
text: AGH Space Systems
Expand All @@ -20,9 +21,9 @@ rover:
---

<figure>
<img src="assets/img/phobos/1.jpg" />
<img src="assets/img/phobos/2.png" />
<img src="assets/img/phobos/3.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/phobos/1.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/phobos/2.png" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/phobos/3.jpg" />
<figcaption>Photos by <a href="https://spacesystems.agh.edu.pl/">AGH Space Systems</a>.</figcaption>
</figure>

Expand Down
44 changes: 44 additions & 0 deletions _posts/2022-04-02-PrOP-M.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: ПрОП-М / PrOP-M
categories: mars
layout: post
read_more: false
rover:
org:
text: USSR
mission:
text: Mars 2, Mars 3
launch:
text: 1971
destination:
text: Mars
status:
text: Failed
weight:
text: 4.5 kg
dimensions:
text: (?) 21-25 x 16-25 x 4-6 cm
---

<figure>
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/prop-m/2.jpg" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/prop-m/4.png" />
<img src="{{ site.url }}{{ site.baseurl }}/assets/img/prop-m/3.gif" width=600/>
<iframe width="600" height="450" src="https://www.youtube-nocookie.com/embed/tVJfjDOa3TI?si=-L04KCegI0x4eYzF&amp;start=528" 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>
<figcaption>Soviet Space Program / VNIITransmash</figcaption>
</figure>



- Connected to the lander by a 15-meter power cable.
- Equipped with two small metal rods for autonomous obstacle avoidance.
- Built 26 years before NASA's first rover in 1997.
- Two PrOP-M rovers were built for Mars 2 and Mars 3 missions (possibly more for further missions).
- After landing, meant to be placed on the Martian surface by a 6-joint robotic arm, moving within the view of the lander’s cameras.
- Carried two instruments, a dynamic penetrometer and a gamma-ray densitometer.
- Their tracks in the Martian soil would have helped analyze the soil’s material properties.

<!--more-->



4 changes: 1 addition & 3 deletions _sass/header.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.header {
padding-top: 35px;
width: calc(min(80vw, 500px));
margin: 0 auto 0 auto;
margin: 0 auto 0 auto;
}

.header nav {
Expand All @@ -15,7 +14,6 @@
}

.header div {
font-size: 16px;
padding: 20px 0 20px 0 ;
}

Expand Down
7 changes: 3 additions & 4 deletions _sass/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

/* Base */
html {
font-size: 18px;
}

/* 01 Font family */

body {
// font-family: 'Lato', 'Open Sans', sans-serif;

font-family: 'Courier New', Courier, monospace;
font-family: 'Lato', 'Open Sans', sans-serif;
line-height: 1.5em;
font-size: 18px;
}

/* 03 Spacing */
Expand Down
11 changes: 10 additions & 1 deletion _sass/post.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

.post {
font-family: 'Lato';
width: calc(min(80vw, 500px));
margin: 0px auto 50px auto;
text-align: justify;
}
Expand All @@ -13,12 +12,22 @@
display: grid;
grid-template-columns: auto 1fr;
column-gap: 16px;
line-height: 1.5em;
}

.post .info div:nth-child(even) {
color: white;
}

.post .info div:nth-child(odd) {
text-transform: capitalize;
}

.post .content {
margin-top: 20px;
}

.tags span {
font-size: 16px;
color: grey
}
Loading

0 comments on commit a1f66e2

Please sign in to comment.