mirror of
https://github.com/kou029w/_.git
synced 2025-02-03 15:48:40 +00:00
Compare commits
3 commits
236bef621f
...
de774ce030
Author | SHA1 | Date | |
---|---|---|---|
|
de774ce030 | ||
c8b2ae0f07 | |||
|
c90d17158d |
7 changed files with 181 additions and 4722 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)
|
|
@ -3,7 +3,7 @@
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^9.5.1",
|
"next": "^13.5.0",
|
||||||
"react": "^16.13.1",
|
"react": "^16.13.1",
|
||||||
"react-dom": "^16.13.1",
|
"react-dom": "^16.13.1",
|
||||||
"vad.js": "kdavis-mozilla/vad.js"
|
"vad.js": "kdavis-mozilla/vad.js"
|
||||||
|
|
4863
vad/yarn.lock
4863
vad/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue