feat: complete restyling of basic components

This commit is contained in:
2025-04-28 15:42:51 +02:00
parent 30aeb6578e
commit 807a1595d8
20 changed files with 314 additions and 63 deletions

View File

@@ -7,7 +7,7 @@
<header>
{{ partial "header.html" . }}
</header>
<main>
<main class="main">
{{ block "main" . }}{{ end }}
</main>
<footer>

View File

@@ -1,8 +1,5 @@
{{ define "main" }}
{{ .Content }}
{{ range site.RegularPages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ end }}
<button class="button is-primary">Button</button>
{{ end }}
<div class="content">
{{ .Content }}
</div>
{{ end }}

View File

@@ -1,8 +1,8 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<h1 class="title is-1">{{ .Title }}</h1>
{{ .Content }}
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
<h2 class="title is-2"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
{{ end }}
{{ end }}

View File

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