mirror of
https://github.com/kou029w/_.git
synced 2025-02-03 15:48:40 +00:00
Compare commits
1 commit
38d30dbc24
...
bd5f7763d8
Author | SHA1 | Date | |
---|---|---|---|
|
bd5f7763d8 |
5 changed files with 0 additions and 38 deletions
|
@ -1,5 +0,0 @@
|
||||||
:8080 {
|
|
||||||
file_server
|
|
||||||
templates
|
|
||||||
try_files {path} /
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
services:
|
|
||||||
caddy:
|
|
||||||
image: caddy
|
|
||||||
ports:
|
|
||||||
- 8080:8080
|
|
||||||
volumes:
|
|
||||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
|
||||||
- ./srv:/srv
|
|
|
@ -1 +0,0 @@
|
||||||
# あ
|
|
|
@ -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>
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
title: トップ
|
|
||||||
---
|
|
||||||
|
|
||||||
# トップページ
|
|
||||||
|
|
||||||
こんにちは、世界
|
|
||||||
|
|
||||||
- [a](a)
|
|
Loading…
Add table
Reference in a new issue