.
This commit is contained in:
parent
071a4d8a97
commit
4d3ca1c554
39 changed files with 3386 additions and 0 deletions
26
layouts/_default/baseof.html
Normal file
26
layouts/_default/baseof.html
Normal 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>
|
5
layouts/_default/check-open-status.json
Normal file
5
layouts/_default/check-open-status.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"isOpen": {{ $status := partial "check-open-status.html" . }}{{ $status.isOpen }},
|
||||
"currentDay": "{{ now.Format "Monday" }}",
|
||||
"currentTime": "{{ now.Format "15:04" }}"
|
||||
}
|
12
layouts/_default/list.html
Normal file
12
layouts/_default/list.html
Normal 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 }}
|
9
layouts/_default/single.html
Normal file
9
layouts/_default/single.html
Normal 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 }}
|
5
layouts/_default/single.json
Normal file
5
layouts/_default/single.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"layout": "{{ .Layout }}",
|
||||
"title": "{{ .Title }}",
|
||||
"type": "{{ .Type }}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue