1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

Fix brain rot

This commit is contained in:
RGBCube 2024-02-16 12:47:32 +03:00
parent 3bafcf1765
commit dbe56ccbb1
No known key found for this signature in database
12 changed files with 52 additions and 59 deletions

View file

@ -1,6 +1,5 @@
import Cube from "./_includes/cube.tsx"; import Cube from "./_includes/cube.tsx";
export const layout = "base.vto";
export const title = "404"; export const title = "404";
export default (_data: Lume.Data, helpers: Lume.Helpers) => { export default (_data: Lume.Data, helpers: Lume.Helpers) => {

View file

@ -1,15 +1,15 @@
--- ---
layout: base.vto layout: text.vto
type: article
--- ---
<nav> {{ content }}
<a href="/">HOME</a>
<a href="/about">ABOUT</a>
<a href="/blog">BLOG</a>
<a href="/contact">CONTACT</a>
</nav>
<div class="content">{{ content }}</div> {{ if tags.length !== 0 }}
<p>Tags: {{ tags.join(", ") }}</p>
{{ /if }}
<footer>Copyright © RGBCube</footer> <p>
Also, if you are a dinosaur that enjoys good technology, check out my
<a href="/blog.rss">RSS Feed</a>
.
</p>

View file

@ -1,15 +0,0 @@
---
layout: article.vto
---
{{ content }}
{{ if tags.length !== 0 }}
<p>Tags: {{ tags.join(", ") }}</p>
{{ /if }}
<p>
Also, if you are a dinosaur that enjoys good technology, check out my
<a href="/blog.rss">RSS Feed</a>
.
</p>

View file

@ -1,10 +0,0 @@
<ul>
{{ for post of search.pages("layout=base.vto", "date")}}
<li>
<p>
<a href="{{ post.url }}">{{ post.date.toISOString().slice(0, 10) }}</a>:
{{ post.title }}
</p>
</li>
{{ /for }}
</ul>

14
site/_includes/text.vto Normal file
View file

@ -0,0 +1,14 @@
---
layout: base.vto
---
<nav>
<a href="/">HOME</a>
<a href="/about">ABOUT</a>
<a href="/blog">BLOG</a>
<a href="/contact">CONTACT</a>
</nav>
<div class="content">{{ content }}</div>
<footer>Copyright © RGBCube</footer>

View file

@ -1,6 +1,5 @@
--- ---
layout: article.vto layout: text.vto
title: About title: About
--- ---

21
site/blog.vto Normal file
View file

@ -0,0 +1,21 @@
---
layout: text.vto
title: Blog
---
<h1>Blog Articles</h1>
Are you old? Then you might want to check out my super cool
<a href="/feed">RSS Feed</a> too!
<ul>
{{ for article of search.pages("type=article", "date")}}
<li>
<p>
<a href="{{ article.url }}">{{ article.date.toISOString().slice(0, 10) }}</a>:
{{ article.title }}
</p>
</li>
{{ /for }}
</ul>

View file

@ -1,4 +1,4 @@
{ {
"layout": "post.vto", "layout": "article.vto",
"title": "$ h1" "type": "article"
} }

View file

@ -1,7 +1,8 @@
--- ---
layout: post.vto
date: 2024-01-01 date: 2024-01-01
url: /blog/a title: Test
--- ---
# Test
test test

View file

@ -1,14 +0,0 @@
---
layout: article.vto
title: Blog
---
<h1>Blog Articles</h1>
Are you old? Then you might want to check
out my super cool
<a href="/feed">RSS Feed</a> too!
{{ include "posts.vto" }}

View file

@ -1,6 +1,5 @@
--- ---
layout: article.vto layout: text.vto
title: Contact title: Contact
--- ---

View file

@ -1,6 +1,5 @@
import Cube from "./_includes/cube.tsx"; import Cube from "./_includes/cube.tsx";
export const layout = "base.vto";
export const title = "RGBCube"; export const title = "RGBCube";
export default ( export default (