Skip to content

Commit

Permalink
Add additional content to Rust Workshop page
Browse files Browse the repository at this point in the history
  • Loading branch information
nchan0154 committed Jun 21, 2024
1 parent 1a03b04 commit f526c3c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions collections/tagsPostsPaged.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ module.exports = collection => {
Object.keys(tagList).forEach(tagName => {
const filtered = allPosts.filter(post => {
if (post.data.tags.length > 0) {
return post?.data?.tags?.includes(tagName)
return post?.data?.tags?.includes(tagName);
}
})
});
const sortedPosts = filtered.sort(sortByDate("desc"));
const numberOfPages = Math.ceil(sortedPosts.length / maxPostsPerPage);

Expand Down
20 changes: 20 additions & 0 deletions src/services/workshops/rust.njk
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,32 @@ description: "We provide a number of workshops to enable teams to succeed with R
</div>
</section>

<section class="my-10 container container--lg">
<div class="split-content no-link">
<div class="split-content__wrapper">
<div class="split-content__content">
<h2 class="split-content__subheading">Your mentor</h2>
<p>
Luca Palmieri is a Principal Engineering Consultant at Mainmatter and builds technology
products for a living. His current focus is on backend development, software architecture
and the Rust programming language. He is the author of
<a href="https://zero2prod.com">"Zero to Production in Rust"</a>.
</p>
</div>
<div class="split-content__feature">
{% include 'content/secondary-feature-rust-consulting.njk' %}
</div>
</div>
</div>
</section>

{%
set 'content' = {
"subtitle": "Discover our other services"
}
%}
{{ featuredServices(services['rust-workshops'], content) }}
{% include "global/rust-cta.njk" %}
{% include "global/rust-newsletter-cta.njk" %}
{%
set 'content' = {
Expand Down

0 comments on commit f526c3c

Please sign in to comment.