Initial commit
Some checks failed
ci / test (push) Failing after 2s
pages / build (push) Failing after 1s
pages / deploy (push) Has been skipped

This commit is contained in:
Maxfield Luke 2026-07-06 02:46:37 -04:00
commit bda33ef628
36 changed files with 4233 additions and 0 deletions

6
example/config Normal file
View file

@ -0,0 +1,6 @@
title: Example Site
url: https://example.com
author: Example Author
description: A small ypsilanti demo site.
theme: default
nav: home=/, about=/about/, posts=/posts/, tags=/tags/, rss=/feed.xml

8
example/content/404.md Normal file
View file

@ -0,0 +1,8 @@
---
title: Not Found
layout: base
---
# 404
Page not found. [Go home](/).

9
example/content/about.md Normal file
View file

@ -0,0 +1,9 @@
---
title: About
description: About this example site.
layout: base
---
# About
This page shows a simple content page.

13
example/content/index.md Normal file
View file

@ -0,0 +1,13 @@
---
title: Home
description: Example home page.
layout: base
---
# Example Site
This is a small demo site for ypsilanti.
## Posts
- [First Post](/posts/first-post/)

View file

@ -0,0 +1,21 @@
---
title: First Post
date: 2026-01-01
description: A demo post with tags and markdown features.
layout: post
tags: demo, linux
categories: technology
---
This is a dated post. It appears in the generated post index, feed, tags, and categories.
## Markdown Features
| feature | status |
| - | - |
| tables | yes |
| footnotes | yes |
Here is a footnote.[^1]
[^1]: This is a footnote.

23
example/layouts/base.html Normal file
View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{description}}">
<meta name="author" content="{{author}}">
<meta property="og:title" content="{{title}} - {{site_title}}">
<meta property="og:description" content="{{description}}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{permalink}}">
<title>{{title}} - {{site_title}}</title>
<link rel="stylesheet" href="/style.css">
<link rel="alternate" type="application/rss+xml" href="/feed.xml">
</head>
<body>
<div class="page">
{{> nav}}
<main>{{{content}}}</main>
{{> footer}}
</div>
</body>
</html>

27
example/layouts/post.html Normal file
View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{description}}">
<meta name="author" content="{{author}}">
<meta property="og:title" content="{{title}} - {{site_title}}">
<meta property="og:description" content="{{description}}">
<meta property="og:type" content="article">
<meta property="og:url" content="{{permalink}}">
<title>{{title}} - {{site_title}}</title>
<link rel="stylesheet" href="/style.css">
<link rel="alternate" type="application/rss+xml" href="/feed.xml">
</head>
<body>
<div class="page">
{{> nav}}
<main>
<h1>{{title}}</h1>
<p class="post-date">posted {{date}}</p>
{{{content}}}
</main>
{{> footer}}
</div>
</body>
</html>

View file

@ -0,0 +1,3 @@
<footer>
<p>built with ypsilanti</p>
</footer>

View file

@ -0,0 +1,8 @@
<header>
<div class="identity">
<a class="site-title" href="/">{{site_title}}</a>
</div>
<nav>
{{{nav_html}}}
</nav>
</header>

49
example/static/style.css Normal file
View file

@ -0,0 +1,49 @@
* {
box-sizing: border-box;
}
body {
max-width: 52rem;
margin: 0 auto;
padding: 1rem;
background: #f5f5f5;
color: #222;
font: 16px/1.55 system-ui, sans-serif;
}
a {
color: #0645ad;
}
header,
main,
footer {
margin-bottom: 1rem;
padding: 1rem;
border: 1px solid #ddd;
background: #fff;
}
.site-title {
font-size: 1.5rem;
font-weight: 700;
}
nav a {
margin-right: 0.75rem;
}
.post-date,
.post-list span {
color: #666;
}
table {
border-collapse: collapse;
}
th,
td {
padding: 0.35rem 0.5rem;
border: 1px solid #ddd;
}