Initial commit
This commit is contained in:
commit
9fc52042ca
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
out/
|
17
www/Caddyfile
Normal file
17
www/Caddyfile
Normal file
@ -0,0 +1,17 @@
|
||||
localhost:8080,
|
||||
jeffa.io {
|
||||
redir https://www.{host}{uri}
|
||||
}
|
||||
|
||||
www.localhost:8080,
|
||||
www.jeffa.io {
|
||||
root * /srv/
|
||||
file_server {
|
||||
index index.html
|
||||
}
|
||||
rewrite @not_html {path}.html
|
||||
@not_html {
|
||||
not path *.html
|
||||
}
|
||||
}
|
||||
|
13
www/Containerfile
Normal file
13
www/Containerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM alpine as build
|
||||
|
||||
RUN apk update && apk add pandoc
|
||||
|
||||
WORKDIR /jeffa.io/
|
||||
|
||||
COPY . .
|
||||
|
||||
FROM caddy:2-alpine
|
||||
|
||||
COPY Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
COPY --from=build /jeffa.io/out /srv
|
13
www/build.fish
Normal file
13
www/build.fish
Normal file
@ -0,0 +1,13 @@
|
||||
for file in src/**/*.md
|
||||
set -l output (string replace .md .html $file)
|
||||
set -l output (string replace src/ out/ $output)
|
||||
pandoc \
|
||||
--to html \
|
||||
--css basic.css \
|
||||
--self-contained \
|
||||
$file \
|
||||
> $output
|
||||
end
|
||||
|
||||
podman build -t www.jeffa.io .
|
||||
podman run -p 8080:8080 www.jeffa.io:latest
|
15
www/server.bu
Normal file
15
www/server.bu
Normal file
@ -0,0 +1,15 @@
|
||||
variant: fcos
|
||||
version: 1.5.0
|
||||
systemd:
|
||||
units:
|
||||
- name: www_jeffa_io.service
|
||||
enabled: true
|
||||
contents: |
|
||||
[Unit]
|
||||
Description=caddy run
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=podman-compose up
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
36
www/src/cookbook.md
Normal file
36
www/src/cookbook.md
Normal file
@ -0,0 +1,36 @@
|
||||
# Personal Cookbook
|
||||
|
||||
## Convert file formats
|
||||
|
||||
### Markdown to HTML
|
||||
|
||||
Convert a file
|
||||
|
||||
```sh
|
||||
pandoc --to html --standalone file.md > file.html
|
||||
```
|
||||
|
||||
Add local CSS
|
||||
|
||||
```sh
|
||||
pandoc --to html --css file.css --self-contained file.md > file.html
|
||||
```
|
||||
|
||||
## Kitty
|
||||
|
||||
### Desktop launchers
|
||||
|
||||
The default group uses the main kitty.conf settings. Having the socket set prevents other windows
|
||||
from using these settings by default.
|
||||
|
||||
```.desktop
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=kitty
|
||||
GenericName=Terminal emulator
|
||||
Comment=Fast, feature-rich, GPU based terminal
|
||||
Exec=kitty --instance-group default --listen-on unix:@kitty
|
||||
Icon=kitty
|
||||
Categories=System;TerminalEmulator;
|
||||
```
|
8
www/src/index.md
Normal file
8
www/src/index.md
Normal file
@ -0,0 +1,8 @@
|
||||
# jeffa.io
|
||||
|
||||
jeff@jeffa.io
|
||||
|
||||
<!--toc:start-->
|
||||
- [/](/index)
|
||||
- [/cookbook](/cookbook)
|
||||
<!--toc:end-->
|
5
www/src/nav.md
Normal file
5
www/src/nav.md
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
- [jeffa.io](/index)
|
||||
- Articles
|
||||
- [How To Code]()
|
||||
- [/cookbook](/cookbook)
|
1
www/templates/nav.html
Normal file
1
www/templates/nav.html
Normal file
@ -0,0 +1 @@
|
||||
|
21
www/templates/page.html
Normal file
21
www/templates/page.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="generator" content="pandoc" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
||||
$if(title)$
|
||||
<title>$title$</title>
|
||||
$endif$
|
||||
$if(author)$
|
||||
<meta name="author" content=\"$author$\">
|
||||
$endif$
|
||||
$if(date)$
|
||||
<meta name="date" content=\"$date$\">
|
||||
$endif$
|
||||
$styles()$
|
||||
</head>
|
||||
<body>
|
||||
$body$
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user