Initial commit
This commit is contained in:
commit
bda33ef628
36 changed files with 4233 additions and 0 deletions
6
example/config
Normal file
6
example/config
Normal 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
8
example/content/404.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: Not Found
|
||||
layout: base
|
||||
---
|
||||
|
||||
# 404
|
||||
|
||||
Page not found. [Go home](/).
|
||||
9
example/content/about.md
Normal file
9
example/content/about.md
Normal 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
13
example/content/index.md
Normal 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/)
|
||||
21
example/content/posts/first-post.md
Normal file
21
example/content/posts/first-post.md
Normal 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
23
example/layouts/base.html
Normal 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
27
example/layouts/post.html
Normal 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>
|
||||
3
example/partials/footer.html
Normal file
3
example/partials/footer.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<footer>
|
||||
<p>built with ypsilanti</p>
|
||||
</footer>
|
||||
8
example/partials/nav.html
Normal file
8
example/partials/nav.html
Normal 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
49
example/static/style.css
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue