parent
f661bdff58
commit
9e78a778c0
@ -0,0 +1,6 @@
|
||||
import { parse } from "std/encoding/toml.ts";
|
||||
|
||||
export default async function toml(path: string | URL) {
|
||||
const content = await Deno.readTextFile(path);
|
||||
return parse(content);
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
{
|
||||
"importMap": "import_map.json",
|
||||
"tasks": {
|
||||
"lume": "deno eval \"import 'lume/task.ts'\" --",
|
||||
"build": "deno task lume",
|
||||
"serve": "deno task lume -s"
|
||||
},
|
||||
"compilerOptions": {
|
||||
"jsx": "react-jsx",
|
||||
"jsxImportSource": "npm:preact"
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
{
|
||||
"importMap": "import_map.json",
|
||||
"tasks": {
|
||||
"lume": "echo \"import 'lume/cli.ts'\" | deno run --unstable -A -",
|
||||
"build": "deno task lume",
|
||||
"serve": "deno task lume -s"
|
||||
},
|
||||
"compilerOptions": {
|
||||
"jsx": "react-jsx",
|
||||
"jsxImportSource": "npm:preact"
|
||||
},
|
||||
"lint": {
|
||||
"files": {
|
||||
"exclude": ["src/_includes/styles/external/"]
|
||||
}
|
||||
},
|
||||
"fmt": {
|
||||
"files": {
|
||||
"exclude": ["src/_includes/styles/external/"]
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"imports": {
|
||||
"lume/": "https://deno.land/x/lume@v1.12.1/",
|
||||
"preact/jsx-runtime": "https://deno.land/x/lume@v1.11.4/deps/preact_runtime.ts",
|
||||
"experimental/": "https://raw.githubusercontent.com/lumeland/experimental-plugins/main/"
|
||||
"experimental/": "https://raw.githubusercontent.com/lumeland/experimental-plugins/main/",
|
||||
"std/": "https://deno.land/std/",
|
||||
"#types": "./src/_includes/types.ts"
|
||||
}
|
||||
}
|
||||
|
@ -1,13 +1,12 @@
|
||||
---
|
||||
title: 404 - There's Nothing Here
|
||||
layout: layouts/head.njk
|
||||
title: Well, how did I get here?
|
||||
subtitle: 404 - Not found
|
||||
layout: layouts/head.tsx
|
||||
url: /404.html
|
||||
---
|
||||
|
||||
# Well, how did I get here?
|
||||
#### Where does that [highway](/) go to?
|
||||
|
||||
Would you like to [return](/)?
|
||||
|
||||
```ts
|
||||
```js
|
||||
window.location.replace("/");
|
||||
```
|
||||
|
@ -0,0 +1,12 @@
|
||||
# Site metas from Lume metas plugin
|
||||
[metas]
|
||||
site = "Sam's site"
|
||||
lang = "en"
|
||||
description = "The website of a random fishe"
|
||||
icon = "img/favicon.png"
|
||||
keywords = ["nothing"]
|
||||
robots = true
|
||||
generator = true
|
||||
|
||||
[mergedKeys]
|
||||
metas = "object"
|
@ -0,0 +1,23 @@
|
||||
import { PageData } from "lume/core.ts";
|
||||
|
||||
export const title = "Sam Site 2.0";
|
||||
export const layout = "layouts/head.tsx";
|
||||
|
||||
export default ({ children }: PageData) => (
|
||||
<div class="grid">
|
||||
<div>
|
||||
{children}
|
||||
</div>
|
||||
<div>
|
||||
<iframe
|
||||
title="Powered by Fedifeed"
|
||||
allowfullscreen
|
||||
sandbox="allow-top-navigation allow-scripts"
|
||||
width="400"
|
||||
height="500"
|
||||
src="https://fedifeed.com/api/v1/feed?user=sam&instance=https%3A%2F%2Ffroth.zone&instance_type=&theme=pleroma&size=75&header=true&replies=true&boosts=true"
|
||||
>
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
);
|
@ -1,13 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ language }}">
|
||||
<head>
|
||||
<meta charSet="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<link rel="shortcut icon" href="img/favicon.png"/>
|
||||
<link rel="stylesheet" href="styles/style.css"/>
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
{{ content | safe }}
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,34 @@
|
||||
import { PageData } from "lume/core.ts";
|
||||
|
||||
export default ({ metas, children, title, subtitle }: PageData) => (
|
||||
<html lang={metas?.lang}>
|
||||
<head>
|
||||
<title>{title}</title>
|
||||
<meta charSet="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="shortcut icon" href="/img/favicon.png" />
|
||||
<link rel="stylesheet" href="/styles/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="container">
|
||||
<hgroup>
|
||||
<h1>{title}</h1>
|
||||
<h2>{subtitle}</h2>
|
||||
</hgroup>
|
||||
</header>
|
||||
<main class="container">
|
||||
{children}
|
||||
</main>
|
||||
<footer class="container">
|
||||
<small>
|
||||
Built with <a href="https://lume.land">Lume</a> • Hosted on{" "}
|
||||
<a href="https://deno.com/deploy">Deno Deploy</a> from{" "}
|
||||
<a href="https://samtherapy.net">here</a> <em>and</em>{" "}
|
||||
<a href="https://freecumextremist.finance">Froth Pages</a> from{" "}
|
||||
<a href="https://samtherapy.xyz">here</a> •{" "}
|
||||
<a href="https://git.froth.zone/sam/site">Source</a>
|
||||
</small>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
);
|
@ -0,0 +1,29 @@
|
||||
---
|
||||
title: About me
|
||||
subtitle: This is actually just a list of things I host because I have the personality of a ham sandwich
|
||||
layout: layouts/about.tsx
|
||||
---
|
||||
|
||||
### An inexhaustible list of everything I host :)
|
||||
|
||||
- [Status page](https://status.froth.zone)
|
||||
|
||||
#### Federated stuff :)
|
||||
|
||||
- [Pleroma](https://froth.zone)
|
||||
- [Gitea](https://git.froth.zone)
|
||||
- [Writefreely](https://blog.froth.zone)
|
||||
- [PeerTube](https://tube.froth.zone)
|
||||
- [Funkwhale](https://funkwhale.samtherapy.net)
|
||||
- [Fedifeed (pictured either to the right or below)](https://fedifeed.com)
|
||||
|
||||
#### Private frontends
|
||||
|
||||
- [Invidious for YouTube](https://invidious.froth.zone)
|
||||
- [Nitter for Twitter](https://nitter.bird.froth.zone)
|
||||
- [Teddit for Reddit](https://teddit.froth.zone)
|
||||
- [Scribe for Medium](https://scribe.froth.zone)
|
||||
|
||||
##### DNS
|
||||
|
||||
I also self-host [all of my DNS](https://dns.froth.zone).
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Sam's Website, 2.0
|
||||
subtitle: Under construction since October 2022
|
||||
layout: layouts/head.tsx
|
||||
---
|
||||
|
||||
### Hello there.
|
||||
|
||||
Website!
|
||||
|
||||
[Information, I guess](/about)
|
@ -1,19 +0,0 @@
|
||||
import { PageData } from "lume/core.ts";
|
||||
|
||||
export const title = "Sam Site 2.0";
|
||||
export const layout = "layouts/head.njk";
|
||||
|
||||
export default ({ data }: PageData) => (
|
||||
<>
|
||||
<header class="container">
|
||||
<hgroup>
|
||||
<h1>{title}</h1>
|
||||
<h2>Stuff</h2>
|
||||
</hgroup>
|
||||
</header>
|
||||
<main class="container">
|
||||
<p>There was a website here. There isn't anymore.</p>
|
||||
<p>There will be, eventually.</p>
|
||||
</main>
|
||||
</>
|
||||
);
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,8 @@
|
||||
scripts:
|
||||
lint: deno lint
|
||||
format: deno fmt
|
||||
pre-commit:
|
||||
cmd:
|
||||
- vr lint
|
||||
- vr format
|
||||
gitHook: pre-commit
|
Loading…
Reference in new issue