This commit is contained in:
2026-03-25 15:45:57 +09:00
parent 266e0b0cf9
commit 1594477a83
8 changed files with 202 additions and 155 deletions

View File

@@ -1,15 +1,21 @@
{{ define "main" }}
{{- partial "nav.html" . -}}
{{ $section := .Section }}
{{ with .Title }}{{ $section = . }}{{ end }}
{{ $pages := union .RegularPages .Sections }}
<div class="post-list">
<h1>{{ with .Title }}{{ . }}{{ else }}{{ .Section }}{{ end }}</h1>
<div class="prompt">
<span class="user">morgan</span><span class="at">@</span><span class="host">morgan.kr</span><span class="sep">:</span><span class="path">~/{{ $section }}</span><span class="dollar">$</span> ls -l
</div>
<div class="ls-header">total {{ len $pages }}</div>
<ul>
{{ range $pages }}
<li>
<span class="perms">-rw-r--r--</span>
{{ if gt .Date.Year 2000 }}<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan _2 2006" }}</time>{{ else }}<time> </time>{{ end }}
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ if gt .Date.Year 2000 }}<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
</li>
{{ end }}
</ul>