Checkpoint
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
|
||||
{{ $content := .Content }}
|
||||
{{ range $paginator.Pages.ByWeight }}
|
||||
<main id="main"{{ if (isset .Params "fit" )}} class="fit"{{ end }}>
|
||||
asdf
|
||||
{{ $content }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</main>
|
||||
{{end}}
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<main id="main">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</main>
|
||||
{{ end }}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<main id="main">
|
||||
<main id="main" class="title">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
</main>
|
||||
|
||||
11
themes/maddybook/layouts/limerent-object/baseof.html
Normal file
11
themes/maddybook/layouts/limerent-object/baseof.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
12
themes/maddybook/layouts/limerent-object/list.html
Normal file
12
themes/maddybook/layouts/limerent-object/list.html
Normal file
@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
|
||||
{{ $content := .Content }}
|
||||
{{ range $paginator.Pages.ByWeight }}
|
||||
<main id="main"{{ if (isset .Params "fit" )}} class="fit"{{ end }}>
|
||||
asdf
|
||||
{{ $content }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</main>
|
||||
{{end}}
|
||||
6
themes/maddybook/layouts/limerent-object/single.html
Normal file
6
themes/maddybook/layouts/limerent-object/single.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<main id="main">
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
</main>
|
||||
{{ end }}
|
||||
@ -1,9 +1,4 @@
|
||||
<header>
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/">Home</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<head>
|
||||
<title>{{ .Title }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/main.css" />
|
||||
</head>
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
<head>
|
||||
<title>{{ .Title }}</title>
|
||||
</head>
|
||||
<header>
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/">Home</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
22
themes/maddybook/layouts/partials/pagination.html
Normal file
22
themes/maddybook/layouts/partials/pagination.html
Normal file
@ -0,0 +1,22 @@
|
||||
{{ $paginator := $.Paginator }}
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
<nav class="paginator" aria-label="page">
|
||||
<ul class="pagination pagination-sm">
|
||||
<li class="page-item{{ if not $paginator.HasPrev }} disabled{{ end }}">
|
||||
<a class="page-link"{{ if $paginator.HasPrev }} href="{{ $paginator.Prev.URL }}"{{ end }}><svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 20 0 l -6 8 l 6 8" /></svg> Previous</a>
|
||||
</li>
|
||||
{{ if lt $paginator.TotalPages 10 }}
|
||||
{{ range $paginator.Pagers }}
|
||||
<li class="page-item{{ if eq . $paginator}} active{{ end }}">
|
||||
<a class="page-link" href="{{ .URL }}">{{ .PageNumber }}{{ if eq . $paginator}}<span class="sr-only"></span>{{ end }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<li class="page-item too-many">Page {{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li>
|
||||
{{ end }}
|
||||
<li class="page-item{{ if not $paginator.HasNext }} disabled{{ end }}">
|
||||
<a class="page-link"{{ if $paginator.HasNext }} href="{{ $paginator.Next.URL }}"{{ end }}>Next <svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 0 0 l 6 8 l -6 8" /></svg></a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{{ end }}
|
||||
11
themes/maddybook/layouts/post/baseof.html
Normal file
11
themes/maddybook/layouts/post/baseof.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
12
themes/maddybook/layouts/post/list.html
Normal file
12
themes/maddybook/layouts/post/list.html
Normal file
@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
|
||||
{{ $content := .Content }}
|
||||
{{ range $paginator.Pages.ByWeight }}
|
||||
<main id="main"{{ if (isset .Params "fit" )}} class="fit"{{ end }}>
|
||||
asdf
|
||||
{{ $content }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</main>
|
||||
{{end}}
|
||||
6
themes/maddybook/layouts/post/single.html
Normal file
6
themes/maddybook/layouts/post/single.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<main id="main">
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
</main>
|
||||
{{ end }}
|
||||
44
themes/maddybook/static/css/main.css
Normal file
44
themes/maddybook/static/css/main.css
Normal file
@ -0,0 +1,44 @@
|
||||
@import url("https://fonts.googleapis.com/css?family=Gentium+Book+Basic");
|
||||
@font-face {
|
||||
font-family: "Tom's New Roman";
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
src: url("/tomnr.woff") format("woff");
|
||||
}
|
||||
header {
|
||||
margin: 0 auto;
|
||||
max-width: 640px;
|
||||
font-family: "Tom's New Roman", serif;
|
||||
font-size: 18pt;
|
||||
text-align: center;
|
||||
}
|
||||
ul {
|
||||
list-style-type: none;
|
||||
margin: 1rem 0;
|
||||
padding: 0;
|
||||
}
|
||||
ul li {
|
||||
margin: 1rem;
|
||||
padding: 0;
|
||||
}
|
||||
.title ul {
|
||||
list-style-type: none;
|
||||
font-family: "Tom's New Roman", serif;
|
||||
text-align: center;
|
||||
}
|
||||
main {
|
||||
margin: 0 auto;
|
||||
max-width: 640px;
|
||||
font-family: "Gentium Book Basic", serif;
|
||||
font-size: 18pt;
|
||||
text-align: justify;
|
||||
}
|
||||
.title img {
|
||||
max-width: 50%;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
h1, h2 {
|
||||
font-family: "Tom's New Roman", sans-serif;
|
||||
text-align: center;
|
||||
}
|
||||
BIN
themes/maddybook/static/tomnr.woff
Normal file
BIN
themes/maddybook/static/tomnr.woff
Normal file
Binary file not shown.
Reference in New Issue
Block a user