Skip to content

Commit

Permalink
Add new zola version of the website
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbobbio committed Jul 15, 2024
1 parent 8c2073d commit 0d84fb2
Show file tree
Hide file tree
Showing 12 changed files with 410 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ result*
**/.DS_Store
/crates/maelstrom-web/target
/**/__pycache__
/website2/public
2 changes: 2 additions & 0 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
python311Packages,
mypy,
black,
zola,
version ? null
}:

Expand Down Expand Up @@ -56,6 +57,7 @@ let
python311Packages.types-protobuf
python311Packages.xdg-base-dirs
mdbook
zola
];

buildInputs = [ openssl ] ++ optionals stdenv.isDarwin [ libiconv ];
Expand Down
16 changes: 16 additions & 0 deletions website2/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# The URL the site will be built for
base_url = "https://maelstrom-software.com"

# Whether to automatically compile all Sass files in the sass directory
compile_sass = true

# Whether to build a search index to be used later on by a JavaScript library
build_search_index = false

[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = false

[extra]
# Put all your custom variables here
6 changes: 6 additions & 0 deletions website2/content/blog/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
title = "The Maelstrom Blog"
sort_by = "date"
template = "blog.html"
page_template = "blog-page.html"
+++
8 changes: 8 additions & 0 deletions website2/content/blog/first.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+++
title = "My first post"
date = 2019-11-27
+++

This is some blog content.
<!-- more -->
This is the rest of the content.
8 changes: 8 additions & 0 deletions website2/content/blog/second.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
+++
title = "My second post"
date = 2020-11-27
+++

This is some blog content.
<!-- more -->
This is the rest of the content.
1 change: 1 addition & 0 deletions website2/static/assets
1 change: 1 addition & 0 deletions website2/static/images
87 changes: 87 additions & 0 deletions website2/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<!DOCTYPE HTML>
<!-- vim: set sw=2 ts=2 et ai: -->
<!--
Maelstom Software Website
-->
<html>
<head>
<title>Maelstrom Software</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="/assets/css/main.css" />
<link rel="icon" type="png" href="/images/Favicon.png">
</head>
<body class="{% if current_path == "/" %}homepage{% else %}no-sidebar{% endif %} is-preload">
<div id="page-wrapper">

<!-- Header -->
<div id="header-wrapper">
<div id="header" class="container">

<!-- Logo -->
<h1 id="logo"><a href="/" class="image featured first"><img src="/images/MaelstromLogo.png" alt="" /></a></h1>

<!-- Nav -->
<nav id="nav">
<ul>
<li><a href="https://maelstrom-software.com/book/">Documentation</a></li>
<li><a href="/blog/">Blog</a></li>
<li class="icon brands fa-discord"><a href="https://discord.gg/rgeuZz6CfV"><span class="extra"></span>Discord</a></li>
<li class="icon brands fa-github"><a href="https://github.com/maelstrom-software/maelstrom"><span class="extra"></span>Github</a></li>
</ul>
</nav>

</div>

{% block hero %} {% endblock %}

</div>

<!-- Overview -->
<div class="wrapper">
<div class="container" id="main">

<!-- Content -->
<article id="content">
{% block content %} {% endblock %}
</article>
</div>
</div>

<!-- Footer -->
<div id="footer-wrapper">
<div id="footer" class="container">
<header class="major">
<h2>Connect with us</h2>
<br>
</section>
<section class="col-4 col-18-narrower">
<div class="row gtr-0">
<ul class="divided icons col-4 col-8-mobile">
<li class="icon brands fa-discord"><a href="https://discord.gg/rgeuZz6CfV"><span class="extra"></span>Discord</a></li>
</ul>
<ul class="divided icons col-4 col-8-mobile">
<li class="icon brands fa-github"><a href="https://github.com/maelstrom-software/maelstrom"><span class="extra"></span>Github</a></li>
</ul>
</div>
</section>
</div>
</div>
<div id="copyright" class="container">
<ul class="menu">
<li>&copy; Maelstrom. All rights reserved.</li>
</ul>
</div>
</div>
</div>

<!-- Scripts -->
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/jquery.dropotron.min.js"></script>
<script src="/assets/js/browser.min.js"></script>
<script src="/assets/js/breakpoints.min.js"></script>
<script src="/assets/js/util.js"></script>
<script src="/assets/js/main.js"></script>

</body>
</html>
9 changes: 9 additions & 0 deletions website2/templates/blog-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% extends "base.html" %}

{% block content %}
<h1 class="title">
{{ page.title }}
</h1>
<p class="subtitle"><strong>{{ page.date }}</strong></p>
{{ page.content | safe }}
{% endblock content %}
41 changes: 41 additions & 0 deletions website2/templates/blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{% extends "base.html" %}

{% block content %}

<!-- Overview -->
<div class="wrapper">
<div class="container" id="main">
<!-- Content -->
<article id="content">
<header>
<h2>{{ section.title }}</h2>
<p>Maelstrom packages your Rust tests into hermetic micro-containers, then schedules
and distributes them amongst an arbitrarily large cluster of test-runners.</p>
</header>
<a href="#" class="image featured"><img src="images/pic06.jpg" alt="" /></a>
</article>
</div>
</div>

<div class="wrapper">
<div class="container">
<div class="row">
{% for page in section.pages %}
<section class="col-6 col-12-narrower feature">
<div class="image-wrapper first">
<a href="#" class="image featured"><img src="images/pic01.jpg" alt="" /></a>
</div>
<header>
<h2>{{ page.title }}</h2>
</header>
{{ page.summary | safe }}
<ul class="actions">
<li><a href="{{ page.permalink | safe }}" class="button">Elevate my awareness</a></li>
</ul>
</section>
{% endfor %}
</div>
</div>
</div>

{% endblock content %}
Loading

0 comments on commit 0d84fb2

Please sign in to comment.