density bump

This commit is contained in:
Quad 2025-04-30 20:52:39 +02:00
parent 91fe2e6954
commit 72cff50604
3 changed files with 19 additions and 7 deletions

View File

@ -18,6 +18,7 @@
html, body, p, h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
line-height: 1.20
}
main h1:first-child {
@ -63,6 +64,15 @@ body {
padding: 10px 10px;
}
.post-title, .post-time {
line-height: 0.8;
}
.post-title .post-time {
font-size: 10pt;
font-weight: normal;
}
a {
color: #00e;
text-decoration: none;

View File

@ -1,10 +1,12 @@
{{ define "main" }}
{{ .Content }}
{{ range site.RegularPages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time><br />
{{ .Summary | strings.Truncate 200 }}
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<h2 class="post-title">
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a><br />
<time class="post-time" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
</h2>
<p class="post-summary">{{ .Summary | strings.Truncate 200 }}</p>
{{ end }}
{{ end }}

View File

@ -1,9 +1,9 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<h1 class="post-title">{{ .Title }}</h1>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
<time class="post-time" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}