Browse Source

Add blog, formatting test post, permalinks

main
Erin L. Nova 5 months ago
parent
commit
10ca36a09f
Signed by: erin
GPG Key ID: DA70E064A8C70F44
  1. 3
      _cobalt.yml
  2. 9
      _defaults/pages.md
  3. 6
      _includes/navigation.liquid
  4. 28
      _layouts/blog.liquid
  5. 24
      _scss/_formatting.scss
  6. 5
      blog.md
  7. 1
      contact.md
  8. 1
      download.md
  9. 9
      index.md
  10. 72
      posts/2022-04-27-post-1.md
  11. 10
      posts/post-1.md

3
_cobalt.yml

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

9
_defaults/pages.md

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

6
_includes/navigation.liquid

@ -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

@ -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>

24
_scss/_formatting.scss

@ -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

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

1
contact.md

@ -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).

1
download.md

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

9
index.md

@ -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!

72
posts/2022-04-27-post-1.md

@ -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.

10
posts/post-1.md

@ -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!
Loading…
Cancel
Save