1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-02-03 07:38:44 +00:00

Compare commits

...

3 commits

Author SHA1 Message Date
dependabot[bot]
38d30dbc24
Merge 0f19ff4d97 into c8b2ae0f07 2023-12-28 16:01:48 +00:00
c8b2ae0f07
create caddy-md 2023-12-28 23:11:47 +09:00
dependabot[bot]
0f19ff4d97
Bump semver from 7.3.7 to 7.5.4 in /tsm-vs-esno
Bumps [semver](https://github.com/npm/node-semver) from 7.3.7 to 7.5.4.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.3.7...v7.5.4)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-09 08:21:42 +00:00
6 changed files with 41 additions and 3 deletions

5
caddy-md/Caddyfile Normal file
View file

@ -0,0 +1,5 @@
:8080 {
file_server
templates
try_files {path} /
}

8
caddy-md/compose.yml Normal file
View 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
View file

@ -0,0 +1 @@
# あ

15
caddy-md/srv/index.html Normal file
View 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
View file

@ -0,0 +1,9 @@
---
title: トップ
---
# トップページ
こんにちは、世界
- [a](a)

View file

@ -357,9 +357,9 @@ path-key@^3.1.0:
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
semver@^7.0.0:
version "7.3.7"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f"
integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==
version "7.5.4"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
dependencies:
lru-cache "^6.0.0"