1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-02-03 15:48:40 +00:00

Compare commits

..

1 commit

Author SHA1 Message Date
dependabot[bot]
bd5f7763d8
Merge 0f19ff4d97 into e353a7db6a 2023-12-19 23:36:01 +00:00
5 changed files with 0 additions and 38 deletions

View file

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

View file

@ -1,8 +0,0 @@
services:
caddy:
image: caddy
ports:
- 8080:8080
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./srv:/srv

View file

@ -1 +0,0 @@
# あ

View file

@ -1,15 +0,0 @@
<!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>

View file

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