moving from nini to ni

This commit is contained in:
eli 2022-09-01 21:34:12 -04:00
parent e206937574
commit 1cfce06427
7 changed files with 36 additions and 50 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/public/*.html
/public/*.xml
# ---> macOS
# General

View File

@ -4,4 +4,10 @@ Docs for [Small and Nearly Silent](https://smallandnearlysilent.com).
Small and nearly silent, or "sans," is a pubnix playground for exploring esolangs and other sorts of playful programs.
These docs are maintained using [nini](https://git.sr.ht/~m15o/nini).
These docs are maintained using [ni](https://git.sr.ht/~m15o/ni).
To build,
```
$ ni src/ public/ template.html atom-template.xml smallandnearlysilent.com
```

View File

@ -1,29 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>sans</title>
<title>small and nearly silent</title>
<link rel="alternate" href="https://smallandnearlysilent.com"/>
<author>
<name>sans folks</name>
</author>
{{ template "content" . }}
</feed>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>sans</title>
<link rel="alternate" href="https://smallandnearlysilent.com"/>
<author>
<name>sans folks</name>
</author>
<id>https://smallandnearlysilent.com</id>
<updated>{{ .TimeRFC3339 }}</updated>
<link rel="self" href="https://smallandnearlysilent.com/atom.xml"/>
{{ range .entries }}
<entry>
<title>{{ .DisplayName }}</title>
<link rel="alternate" href="https://smallandnearlysilent.com/{{ .Name }}.html"/>
<updated>{{ .TimeRFC3339 }}</updated>
<id>https://smallandnearlysilent.com/{{ .Name }}.html</id>
</entry>
{{ end }}
</feed>

6
src/sans.gmi Normal file
View File

@ -0,0 +1,6 @@
# small and nearly silent
Small and nearly silent, or "sans," is a pubnix playground for exploring esolangs and other sorts of playful programs.
=> https://tildeverse.org pubnix
=> https://esolangs.org/wiki/Main_Page esolangs

View File

@ -1,2 +0,0 @@
<h1>small and nearly silent</h1>
<p>Small and nearly silent, or "sans," is a <a href="https://tildeverse.org">pubnix</a> playground for exploring esolangs and other sorts of playful programs.</p>

View File

@ -1,26 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ .Title }}</title>
<link rel="stylesheet" href="sans.css">
<link rel="alternate" type="application/atom+xml" href="https://smallandnearlysilent.com/feed.xml" />
</head>
<body>
<div class="container">
<nav>
<a href="sans.html">home</a>
<a href="index.html">changelog</a>
<a href="feed.atom">feed</a>
</nav>
<main>
{{ .Content }}
</main>
<footer>
{{ if .Backlinks }}
<p><b>backlinks</b>: {{ range .Backlinks }}<a href="{{ .Href }}">{{ .Name }}</a> {{ end }}</p>
{{ end }}
</footer>
</div>
</body>
</html>

21
template.html Normal file
View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>small and nearly silent</title>
<link rel="stylesheet" href="sans.css">
<link rel="alternate" type="application/atom+xml" href="https://smallandnearlysilent.com/feed.xml" />
</head>
<body>
<div class="container">
<nav>
<a href="sans.html">home</a> /
<a href="changelog.html">changelog</a> /
<a href="atom.xml">feed</a>
</nav>
<main>
{{ template "content" . }}
</main>
</div>
</body>
</html>