kinda painful metadata

This commit is contained in:
Pagwin 2024-08-01 00:48:47 -04:00
parent 29265a2219
commit e6d1d7f04e
No known key found for this signature in database
GPG key ID: 81137023740CA260
10 changed files with 69 additions and 3 deletions

View file

@ -1,6 +1,3 @@
//#import misc_page from "/utils/layouts"
//#wrap doc in misc_page(doc)
#link("https://github.com/Pagwin-Fedora")[Github] \
#link("https://www.linkedin.com/in/spencer-powell-pagwin/")[Linkedin] \
#link("https://pagwin.xyz/index.xml")[RSS]

3
links.yaml Normal file
View file

@ -0,0 +1,3 @@
title: links
author: pagin
tags: []

1
posts/hello.typ Normal file
View file

@ -0,0 +1 @@
hi

4
posts/hello.yaml Normal file
View file

@ -0,0 +1,4 @@
title: hello
author: pagwin
tags: []
date: 2024-8-1

2
templates/archive.html Normal file
View file

@ -0,0 +1,2 @@
My posts:
{{> templates/post-list.html }}

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>My Shake Blog — {{{title}}}</title>
<link rel="stylesheet" type="text/css" href="/css/default.css" />
</head>
<body>
<div id="header">
<div id="logo">
<a href="/">My Shake Blog</a>
</div>
<div id="navigation">
<a href="/">Home</a>
<a href="/about/">About</a>
<a href="/contact/">Contact</a>
<a href="/archive/">Archive</a>
</div>
</div>
<div id="content">
<h1>{{{title}}}</h1>
{{{content}}}
</div>
<div id="footer">
Site proudly generated by <a href="https://shakebuild.com">Shake</a>
</div>
</body>
</html>

0
templates/feed.xml Normal file
View file

7
templates/home.html Normal file
View file

@ -0,0 +1,7 @@
<h2>Welcome</h2>
<img src="/images/logo.png" style="float: right; margin: 10px;" />
<p>Welcome to my blog!</p>
<p>My recent posts here for your reading pleasure:</p>
<h2>Posts</h2>
{{> templates/post-list.html }}
<p>You can find all posts in the <a href="/archive/">archives</a>.

7
templates/post-list.html Normal file
View file

@ -0,0 +1,7 @@
<ul>
{{#posts}}
<li>
<a href="{{{link}}}">{{{title}}}</a> - {{{date}}}
</li>
{{/posts}}
</ul>

15
templates/post.html Normal file
View file

@ -0,0 +1,15 @@
<div class="info">
Posted on {{{date}}}
{{#author}}
by {{{author}}}
{{/author}}
</div>
<div class="info">
Tags:
<ul class="tags">
{{#tags}}
<li><a href="/tags/{{{.}}}/">{{{.}}}</a></li>
{{/tags}}
</ul>
</div>
{{{content}}}