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,6 +1,6 @@
{{ define "main" }}
{{- partial "nav.html" . -}}
<div class="home">
<div class="not-found">
<h1>404</h1>
<p>Page not found.</p>
</div>

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>

View File

@@ -1,11 +1,12 @@
{{ define "main" }}
<div class="home">
<h1>{{ .Site.Params.author }}</h1>
{{ with .Site.Params.description }}<p class="desc">{{ . }}</p>{{ end }}
<ul>
<div class="prompt">
<span class="user">{{ .Site.Params.author | lower }}</span><span class="at">@</span><span class="host">{{ replace .Site.BaseURL "https://" "" }}</span><span class="sep">:</span><span class="path">~</span><span class="dollar">$</span> ls
</div>
<nav class="home-nav">
{{ range .Site.Params.homeLinks }}
<li><a href="{{ .url }}">{{ .label }}</a></li>
<a href="{{ .url }}">{{ .label }}</a>
{{ end }}
</ul>
</nav>
</div>
{{ end }}

View File

@@ -9,6 +9,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap">
<link rel="stylesheet" href="/css/main.css">
<title>{{ $title }}</title>
<meta name="description" content="{{ $desc }}">