Add blog, formatting test post, permalinks

main
~erin 2022-04-27 16:06:31 -04:00
parent 2b95c7c86d
commit 10ca36a09f
Signed by untrusted user: erin
GPG Key ID: DA70E064A8C70F44
11 changed files with 138 additions and 30 deletions

View File

@ -5,6 +5,9 @@ site:
posts:
rss: rss.xml
syntax_highlight:
theme: "InspiredGitHub"
enabled: true
assets:
sass:
style: Nested

View File

@ -1,10 +1,5 @@
---
layout: default.liquid
---
## Blog!
{% for post in collections.posts.pages %}
#### {{post.title}}
[{{ post.title }}]({{ post.permalink }})
{% endfor %}
# Title!
Content

View File

@ -1,10 +1,10 @@
<header>
<div class="container">
<img src="assets/logo.png" alt="logo" class="logo" width="100px" height="50px">
<img src="/assets/logo.png" alt="logo" class="logo" width="100px" height="50px">
<nav>
<ul>
<li><a href="/download.html">Download</a></li>
<li><a href="/contact.html">Contact</a></li>
<li><a href="/download">Download</a></li>
<li><a href="/contact">Contact</a></li>
<li><a href="/blog">Blog</a></li>
</ul>
</nav>

28
_layouts/blog.liquid Normal file
View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
{% include "meta.liquid" %}
</head>
<body>
{% include "navigation.liquid" %}
<main>
{{ page.content }}
{% for post in collections.posts.pages %}
<article class="post">
<h3>
<span><a href="/{{post.permalink}}">🔗 {{ post.title }}</a></span>
<span><code class="date">{{post.published_date}}</code></span>
</h3>
<p>{{post.description}}</p>
<p class="tags"><b>Tags: </b><i>
{% for category in post.categories %}
{{category}},
{% endfor %}
</i></p>
</article>
{% endfor %}
</main>
{% include "footer.liquid" %}
</body>
</html>

View File

@ -16,9 +16,29 @@ ul, ol {
background: $foreground-color;
}
code {
code, pre {
font-family: 'Fira Code', monospace;
border-radius: 5px;
padding: 2px;
background-color: scale-color($background-color, $lightness: -5%);
background-color: scale-color($background-color, $lightness: -5%) !important;
}
.date {
font-size: 0.7em;
}
.post {
border: 2px solid $accent-color;
border-radius: 10px;
padding: 10px;
}
blockquote {
border-left: 4px solid $accent-color;
}
blockquote {
margin-left: 5mm;
padding-left: 2mm;
color: scale-color($foreground-color, $lightness: +10%);
}

5
blog.md Normal file
View File

@ -0,0 +1,5 @@
---
layout: blog.liquid
permalink: /blog
---
# {{page.title}}

View File

@ -1,5 +1,6 @@
---
layout: default.liquid
permalink: /contact
---
You can submit bug reports, feature requests, and similar things via our [Github](https://github.com/23marabi/hermes-site/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc).

View File

@ -1,5 +1,6 @@
---
layout: default.liquid
permalink: /download
---
Uhmm, nothing here yet. Eventually we'll have links for downloads for various platforms.

View File

@ -63,11 +63,4 @@ We will also never accept investors, implement paywalls, ads, blockchain shit, o
## Roadmap
*TODO*
## Blog
*TODO*
{% for post in collections.posts.pages %}
#### {{post.title}}
[{{ post.title }}]({{ post.permalink }})
{% endfor %}
Go to our [Blog](/blog.html) for updates!

View File

@ -0,0 +1,72 @@
---
title: Formatting Test
description: Description
categories:
- test
- testing
published_date: "2022-04-27 19:51:05 +0000"
layout: default.liquid
is_draft: false
---
# Formatting Test
This is just a page to test formatting and CSS.
## Header 1
Some text.
### Header 3
Some text.
#### Header 4
Some text.
## Common Styles
Some *italics* and **bold**. Maybe ***both***.
Tree blockquote sample
> Level one
>> Level two
>>> Level three
>>>> Level four
>>>>> Level five
>>>>>> Level six
>>>>>>> Level seven
Code highlighting
```rust
fn foobar(x: i32, y: Option<i32>) -> i32 {
match y {
Some(bar) => x * bar,
None => x * 42,
}
}
```
```c
int main(int argc, char** argv, char** envp) {
printf("%d\n", argc);
}
```
Bulleted list:
- Item one
- Item two
- Item three
Numbered list:
1. First item
2. Second item
3. Third Item
## Large Paragraph
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et doloremagna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibusquis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst. lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibusquis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst.

View File

@ -1,10 +0,0 @@
---
layout: default.liquid
title: First Post
is_draft: true
---
# This is our first Post!
Welcome to the first post ever on cobalt.rs!