mirror of
https://github.com/RGBCube/Site
synced 2025-07-30 20:47:46 +00:00
Fix brain rot
This commit is contained in:
parent
3bafcf1765
commit
dbe56ccbb1
12 changed files with 52 additions and 59 deletions
|
@ -1,6 +1,5 @@
|
|||
import Cube from "./_includes/cube.tsx";
|
||||
|
||||
export const layout = "base.vto";
|
||||
export const title = "404";
|
||||
|
||||
export default (_data: Lume.Data, helpers: Lume.Helpers) => {
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
---
|
||||
layout: base.vto
|
||||
type: article
|
||||
layout: text.vto
|
||||
---
|
||||
|
||||
<nav>
|
||||
<a href="/">HOME</a>
|
||||
<a href="/about">ABOUT</a>
|
||||
<a href="/blog">BLOG</a>
|
||||
<a href="/contact">CONTACT</a>
|
||||
</nav>
|
||||
{{ content }}
|
||||
|
||||
<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>
|
||||
|
|
|
@ -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>
|
|
@ -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
14
site/_includes/text.vto
Normal 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>
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
layout: article.vto
|
||||
|
||||
layout: text.vto
|
||||
title: About
|
||||
---
|
||||
|
||||
|
|
21
site/blog.vto
Normal file
21
site/blog.vto
Normal 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>
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"layout": "post.vto",
|
||||
"title": "$ h1"
|
||||
"layout": "article.vto",
|
||||
"type": "article"
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
---
|
||||
layout: post.vto
|
||||
date: 2024-01-01
|
||||
url: /blog/a
|
||||
title: Test
|
||||
---
|
||||
|
||||
# Test
|
||||
|
||||
test
|
||||
|
|
|
@ -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" }}
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
layout: article.vto
|
||||
|
||||
layout: text.vto
|
||||
title: Contact
|
||||
---
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import Cube from "./_includes/cube.tsx";
|
||||
|
||||
export const layout = "base.vto";
|
||||
export const title = "RGBCube";
|
||||
|
||||
export default (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue