readme + cleanup
parent
a275088fd7
commit
03323aa5c7
@ -1 +1 @@
|
||||
content/*
|
||||
build/*
|
||||
|
@ -1,8 +1,5 @@
|
||||
build:
|
||||
/usr/local/bin/kiln build
|
||||
build: content
|
||||
kiln build
|
||||
|
||||
publish:
|
||||
rsync -r /home/specter/.local/share/html/talon.computer eattherich.club:/srv/html/specter
|
||||
rsync -r /home/specter/.local/share/gmi/talon.computer eattherich.club:/srv/gmi/specter
|
||||
|
||||
.PHONY: kiln publish
|
||||
publish: build
|
||||
rsync -r build/html talon.computer:/srv/html
|
||||
|
@ -0,0 +1,26 @@
|
||||
# talon.computer
|
||||
|
||||
Powered by [kiln](https://sr.ht/~adnano/kiln/) and [gmi-web](https://git.talon.computer/talon/gmi-web).
|
||||
|
||||
```sh
|
||||
make build && make publish
|
||||
```
|
||||
|
||||
## How
|
||||
|
||||
Using the gmi-web CLI: `npm install --global gmi-web-cli` and [kiln](https://kiln.adnano.co/installation/) with this
|
||||
this configuration in config.toml:
|
||||
```config.toml
|
||||
[[tasks]]
|
||||
input = [".gmi"]
|
||||
output = ".html"
|
||||
template = ".gmi"
|
||||
postprocess = "gmi-web --html en --foreground #444444 --background #9EEBCF"
|
||||
output_dir = "build/html"
|
||||
```
|
||||
|
||||
This will run your gemini files through gmi-web-cli (with some styling flags)
|
||||
and save the results in `build/html`. Rsync that to your web server or what have
|
||||
you.
|
||||
|
||||
See the man page for kiln(1) for more details.
|
@ -1,18 +1,19 @@
|
||||
title = "talon.computer"
|
||||
urls = ["https://talon.computer", "gemini://talon.computer"]
|
||||
urls = ["https://talon.computer"]
|
||||
# urls = ["https://talon.computer", "gemini://talon.computer"]
|
||||
|
||||
[feeds]
|
||||
"/log/" = "talon.computer/log"
|
||||
# [feeds]
|
||||
# "/log/" = "talon.computer/log"
|
||||
|
||||
[[tasks]]
|
||||
input = [".gmi"]
|
||||
output = ".html"
|
||||
template = ".gmi"
|
||||
postprocess = "gmi-web --html en --foreground #444444 --background #9EEBCF"
|
||||
output_dir = "/home/specter/.local/share/html/talon.computer"
|
||||
output_dir = "build/html"
|
||||
|
||||
[[tasks]]
|
||||
input = [".gmi"]
|
||||
output = ".gmi"
|
||||
template = ".gmi"
|
||||
output_dir = "/home/specter/.local/share/gmi/talon.computer"
|
||||
output_dir = "build/gmi"
|
||||
|
Loading…
Reference in New Issue