diff options
author | Dominik Jülg <djuelg@gmx.de> | 2020-08-22 15:33:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-22 15:33:28 +0300 |
commit | baa6c65650a54b5c3be3991b864e9b0616d18ff2 (patch) | |
tree | 6d1236b221e0e111f060aa613017f5a676149732 | |
parent | ee238f14cd137ebec65183faf7c7c0e0131a814a (diff) | |
parent | 7721f7dfdbb2ba90c1cbb3c6d10cb9606ea37b3b (diff) |
Merge pull request #16 from djuelg/feature/v74
Feature/v74
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 3 | ||||
-rwxr-xr-x | layouts/partials/face.svg | 8 | ||||
-rw-r--r-- | sample-config.toml | 2 | ||||
-rw-r--r-- | static/css/default.css | 3 | ||||
-rw-r--r-- | theme.toml | 6 |
7 files changed, 14 insertions, 12 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/sample-config.toml b/sample-config.toml index 72435fe..c8aa7c9 100644 --- a/sample-config.toml +++ b/sample-config.toml @@ -4,7 +4,7 @@ baseurl = "http://0.0.0.0/" title = "Shapez Theme" theme = "Shapez-Theme" -copyright = "Copyright (c) 2016, djuelg; all rights reserved." +copyright = "Copyright (c) 2020, djuelg; all rights reserved." [author] name = "djuelg" 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; } @@ -1,9 +1,9 @@ name = "Shapez Theme" license = "MIT" -licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE.md" -homepage = "" +licenselink = "https://opensource.org/licenses/MIT" +homepage = "https://github.com/djuelg/Shapez-Theme" tags = ["hugo", "blog", "Shapez", "SVG", "design"] -min_version = 0.16 +min_version = 0.74 [author] name = "djuelg" |