mirror of
https://github.com/kou029w/_.git
synced 2025-02-03 15:48:40 +00:00
Compare commits
3 commits
3e8939fe4b
...
a56d284d6f
Author | SHA1 | Date | |
---|---|---|---|
|
a56d284d6f | ||
c8b2ae0f07 | |||
|
bc5ef19ecc |
6 changed files with 44 additions and 6 deletions
5
caddy-md/Caddyfile
Normal file
5
caddy-md/Caddyfile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
:8080 {
|
||||||
|
file_server
|
||||||
|
templates
|
||||||
|
try_files {path} /
|
||||||
|
}
|
8
caddy-md/compose.yml
Normal file
8
caddy-md/compose.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
services:
|
||||||
|
caddy:
|
||||||
|
image: caddy
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
volumes:
|
||||||
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||||
|
- ./srv:/srv
|
1
caddy-md/srv/a.md
Normal file
1
caddy-md/srv/a.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# あ
|
15
caddy-md/srv/index.html
Normal file
15
caddy-md/srv/index.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
{{- $path := .OriginalReq.URL.Path}}
|
||||||
|
{{- if hasSuffix "/" $path}}{{$path = print $path "index"}}{{end}}
|
||||||
|
{{- $path = print $path ".md"}}
|
||||||
|
{{- if not (fileExists $path)}}{{httpError 404}}{{end}}
|
||||||
|
{{- $markdown := (include $path | splitFrontMatter)}}
|
||||||
|
{{- $title := default (trimSuffix ".md" (base $path)) $markdown.Meta.title}}
|
||||||
|
<html lang="ja">
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width">
|
||||||
|
<title>{{$title}}</title>
|
||||||
|
|
||||||
|
{{markdown $markdown.Body | trim}}
|
||||||
|
|
||||||
|
</html>
|
9
caddy-md/srv/index.md
Normal file
9
caddy-md/srv/index.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
title: トップ
|
||||||
|
---
|
||||||
|
|
||||||
|
# トップページ
|
||||||
|
|
||||||
|
こんにちは、世界
|
||||||
|
|
||||||
|
- [a](a)
|
|
@ -1461,14 +1461,14 @@ semver-store@^0.3.0:
|
||||||
integrity sha512-TcZvGMMy9vodEFSse30lWinkj+JgOBvPn8wRItpQRSayhc+4ssDs335uklkfvQQJgL/WvmHLVj4Ycv2s7QCQMg==
|
integrity sha512-TcZvGMMy9vodEFSse30lWinkj+JgOBvPn8wRItpQRSayhc+4ssDs335uklkfvQQJgL/WvmHLVj4Ycv2s7QCQMg==
|
||||||
|
|
||||||
semver@^6.0.0, semver@^6.2.0, semver@^6.3.0:
|
semver@^6.0.0, semver@^6.2.0, semver@^6.3.0:
|
||||||
version "6.3.0"
|
version "6.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
|
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
|
||||||
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
|
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
|
||||||
|
|
||||||
semver@^7.3.2, semver@^7.3.5:
|
semver@^7.3.2, semver@^7.3.5:
|
||||||
version "7.3.7"
|
version "7.5.4"
|
||||||
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f"
|
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
|
||||||
integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==
|
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
|
||||||
dependencies:
|
dependencies:
|
||||||
lru-cache "^6.0.0"
|
lru-cache "^6.0.0"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue