This commit is contained in:
pika 2025-01-04 02:40:01 +01:00
parent 071a4d8a97
commit 4d3ca1c554
39 changed files with 3386 additions and 0 deletions

View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}" class="scroll-smooth dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} - {{ .Site.Title }}{{ end }}</title>
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}">
</head>
<body class="min-h-screen bg-white text-gray-900 dark:bg-pizza-dark dark:text-white">
{{ partial "header.html" . }}
<main class="pt-24">
{{ block "main" . }}{{ end }}
</main>
{{ partial "footer.html" . }}
<!-- JavaScript -->
<script src="{{ "js/main.js" | relURL }}"></script>
<script src="{{ "js/theme.js" | relURL }}" defer></script>
<script src="/js/menu.js"></script>
{{ with resources.Get "js/opening-status.js" }}
{{ with . | resources.Minify }}
<script src="{{ .RelPermalink }}"></script>
{{ end }}
{{ end }}
</body>
</html>

View file

@ -0,0 +1,5 @@
{
"isOpen": {{ $status := partial "check-open-status.html" . }}{{ $status.isOpen }},
"currentDay": "{{ now.Format "Monday" }}",
"currentTime": "{{ now.Format "15:04" }}"
}

View file

@ -0,0 +1,12 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
<div class="posts-list">
{{ range .Pages }}
<article class="post-preview">
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<time>{{ .Date.Format "January 2, 2006" }}</time>
<p>{{ .Summary }}</p>
</article>
{{ end }}
</div>
{{ end }}

View file

@ -0,0 +1,9 @@
{{ define "main" }}
<article>
<h1>{{ .Title }}</h1>
<time>{{ .Date.Format "January 2, 2006" }}</time>
<div class="content">
{{ .Content }}
</div>
</article>
{{ end }}

View file

@ -0,0 +1,5 @@
{
"layout": "{{ .Layout }}",
"title": "{{ .Title }}",
"type": "{{ .Type }}"
}