mirror of
https://github.com/morgan9e/blog
synced 2026-04-15 00:34:35 +09:00
Overhaul
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user