Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/djuelg/Shapez-Theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Juelg <djuelg@gmx.de>2020-08-22 15:33:01 +0300
committerDominik Juelg <djuelg@gmx.de>2020-08-22 15:33:01 +0300
commit7721f7dfdbb2ba90c1cbb3c6d10cb9606ea37b3b (patch)
tree6d1236b221e0e111f060aa613017f5a676149732
parentc4dd06672882c4125c18a1f04bb85264437b1d23 (diff)
fixed pagination and other small bugsfeature/v74
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html3
-rwxr-xr-xlayouts/partials/face.svg8
-rw-r--r--static/css/default.css3
5 files changed, 10 insertions, 8 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 78ae0ed..00a55ed 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -9,7 +9,7 @@
{{ range .Data.Pages.ByDate.Reverse }}
<div class="top-nav">
<img src="{{ .Site.BaseURL }}{{ .Site.Params.logo }}">
- <h3><a href="{{ .Site.BaseURL }}{{ .Site.Params.button_3 }}" rel="me">{{ .Site.Title }}</a></h3>
+ <h3><a href="{{ .Site.BaseURL }}{{ .Site.Params.button_1 }}" rel="me">{{ .Site.Title }}</a></h3>
<text>·</text>
<a href="{{ .Site.BaseURL }}{{ .Site.Params.button_1 }}">Home</a>
<a href="{{ .Site.BaseURL }}{{ .Site.Params.button_2 }}">Playground</a>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 20d4a9d..bc41450 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -8,7 +8,7 @@
<div class="wrapper">
<div class="top-nav">
<img src="{{ .Site.BaseURL }}{{ .Site.Params.logo }}">
- <h3><a href="{{ .Site.BaseURL }}{{ .Site.Params.button_3 }}" rel="me">{{ .Site.Title }}</a></h3>
+ <h3><a href="{{ .Site.BaseURL }}{{ .Site.Params.button_1 }}" rel="me">{{ .Site.Title }}</a></h3>
<text>·</text>
<a href="{{ .Site.BaseURL }}{{ .Site.Params.button_1 }}">Home</a>
<a href="{{ .Site.BaseURL }}{{ .Site.Params.button_2 }}">Playground</a>
diff --git a/layouts/index.html b/layouts/index.html
index 3cc9820..0adc748 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -24,8 +24,9 @@
</div>
{{ end }}
- {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Section" "posts") 2 }}
{{ range $paginator.Pages.ByDate.Reverse }}
+
<div class="timeline-post">
<div class="publish-date">
</br></br><h3>{{ .Date.Format "02" }}</h3></br>{{ .Date.Format "January" | upper }}
diff --git a/layouts/partials/face.svg b/layouts/partials/face.svg
index c21da67..eecfa6c 100755
--- a/layouts/partials/face.svg
+++ b/layouts/partials/face.svg
@@ -15,7 +15,7 @@
style="fill:#333;"/>
<g>
- <a xlink:title="First Page" xlink:href="{{ .Paginator.First.RelPermalink }}">
+ <a xlink:title="First Page" xlink:href="{{ .Paginator.First.URL }}">
<path transform="matrix(0.1,0,0,-0.1,0.11842105,504.11841)"
d="m 1770,2133 c -151,-14 -278,-71 -398,-178 -58,-52 -159,-169 -267,-310 -146,-189 -253,-272 -380,-296 -154,-28 -417,36 -537,132 -20,16 -39,29 -42,29 -3,0 4,-24 15,-52 179,-458 646,-727 1269,-729 399,-2 770,137 1029,386 93,89 152,162 205,253 l 36,60 0,132 c 0,129 -1,132 -29,173 -99,142 -312,289 -506,350 -118,36 -297,59 -395,50 z"
id="path3342" />
@@ -35,7 +35,7 @@
</a>
</g>
<g>
- <a xlink:title="Last Page" xlink:href="{{ .Paginator.Last.RelPermalink }}#moustage">
+ <a xlink:title="Last Page" xlink:href="{{ .Paginator.Last.URL }}#moustage">
<path transform="matrix(-0.1,0,0,-0.1,539.90695,504.03403)"
d="m 1770,2133 c -151,-14 -278,-71 -398,-178 -58,-52 -159,-169 -267,-310 -146,-189 -253,-272 -380,-296 -154,-28 -417,36 -537,132 -20,16 -39,29 -42,29 -3,0 4,-24 15,-52 179,-458 646,-727 1269,-729 399,-2 770,137 1029,386 93,89 152,162 205,253 l 36,60 0,132 c 0,129 -1,132 -29,173 -99,142 -312,289 -506,350 -118,36 -297,59 -395,50 z"
id="path3342-4" />
@@ -55,7 +55,7 @@
</g>
<a xlink:title="Next Page"
- xlink:href="{{ if .Paginator.HasNext }}{{ .Paginator.Next.RelPermalink }}#scroll-down
+ xlink:href="{{ if .Paginator.HasNext }}{{ .Paginator.Next.URL }}#scroll-down
{{ else }}javascript:void(0);{{ end }}">
<g transform="matrix(0.94832872,0,0,0.94832872,-14.890385,-713.8633)">
<path transform="matrix(-0.10710526,0,0,-0.10710526,523.94437,987.8728)"
@@ -85,7 +85,7 @@
</a>
<a xlink:title="Previous Page"
- xlink:href="{{ if .Paginator.HasPrev }}{{ .Paginator.Prev.RelPermalink }}#scroll-down
+ xlink:href="{{ if .Paginator.HasPrev }}{{ .Paginator.Prev.URL }}#scroll-down
{{ else }}javascript:void(0);{{ end }}">
<g transform="matrix(0.94832872,0,0,0.94832872,-14.890385,-713.8633)">
<path transform="matrix(0.10710526,0,0,-0.10710526,64.290535,984.87746)"
diff --git a/static/css/default.css b/static/css/default.css
index 71c5cfb..137d30a 100644
--- a/static/css/default.css
+++ b/static/css/default.css
@@ -508,7 +508,8 @@ hr {
.attention-message h1 {
font-family: 'Fontdiner Swanky', cursive;
- font-size: 5em;
+ font-size: 4em;
+ margin: 0.67em 0;
font-weight: lighter;
}