From 5a5f12732d268add25d5b9c93deccfb30115b82b Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 19 Jan 2018 23:10:16 -0500 Subject: [PATCH] Rearranged layout. Updated page listings. Added proper pagination. Added downloads page as a unique page. Updated wiki layout for being just a header. Updated summary to be based on columns. --- layouts/_default/baseof.html | 20 ++++-- layouts/_default/header.html | 0 layouts/_default/list.html | 20 +++--- layouts/_default/meta.html | 3 - layouts/_default/summary.html | 26 +++---- layouts/page/downloads.html | 86 +++++++++++++++++++++++ layouts/partials/layout/pagination.html | 42 ++++++----- layouts/wiki/{single.html => header.html} | 11 +-- 8 files changed, 147 insertions(+), 61 deletions(-) create mode 100644 layouts/_default/header.html delete mode 100644 layouts/_default/meta.html create mode 100644 layouts/page/downloads.html rename layouts/wiki/{single.html => header.html} (72%) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 16dfbec..6e6a52e 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,9 +6,16 @@ + - {{- if eq .IsPage true }} {{ .Render "meta" }} {{- end }} {{ .Hugo.Generator }} + + + {{- if eq .IsPage true }} + + + + {{- end }} @@ -39,7 +46,13 @@ - {{- if not .IsHome }} {{ partial "layout/navbar" . }} {{- end }} {{ block "main" . }}{{ end }} + {{- if not .IsHome }} + {{ partial "layout/navbar" . }} + {{- end }} + + {{ .Render "header" }} + + {{ block "main" . }}{{ end }}
@@ -48,14 +61,13 @@
+ {{- block "scripts" . }}{{- end }} {{- if eq (getenv "HUGO_ENV") "PRD" }} {{- end }} - - {{- block "scripts" . }}{{- end }} \ No newline at end of file diff --git a/layouts/_default/header.html b/layouts/_default/header.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 2529465..d64271d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,11 +1,13 @@ -{{ define "main" }} -{{ $paginator := .Paginate .Data.Pages }} +{{ define "main" }} {{ $paginator := .Paginate .Data.Pages }} -{{ range $paginator.Pages }} -
- {{ .Render "summary" }} -
-{{ end }} +
+
+

{{ .Title }}

-{{ partial "layout/pagination" . }} -{{ end }} \ No newline at end of file +
+ {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} +
+
+
+ +{{ partial "layout/pagination" . }} {{ end }} \ No newline at end of file diff --git a/layouts/_default/meta.html b/layouts/_default/meta.html deleted file mode 100644 index d50230e..0000000 --- a/layouts/_default/meta.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 387ad66..3b8d781 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,18 +1,8 @@ - -
-
-
- -
-
- -
-

{{ .Title }}

-

{{ .Date.Format "January 02 2006" }} by {{ .Params.author }}

- -
- {{ .Summary }} -
-
-
-
\ No newline at end of file +
+ + + + + {{ .Title }} + +
\ No newline at end of file diff --git a/layouts/page/downloads.html b/layouts/page/downloads.html new file mode 100644 index 0000000..d315eb8 --- /dev/null +++ b/layouts/page/downloads.html @@ -0,0 +1,86 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+ +
+
+

At this time, yuzu does not run any commercial Switch games. yuzu can boot some games, to varying degrees + of success, but does not implement any of the necessary GPU features to render 3D graphics.

+

+ Click here for homebrew games you can download and test.

+
+
+ +
+ {{ .Content }} +
+
+
+ + +
+
+
+ +
+
+
+ +
+
+
+ +
+

Nightly Build + + Last release was + + +

+ +
+
+ + +
+ + +
+
+

Canary Build + + Last release was + + +

+ +
+
+ + +
+ + +
+
+
+
+{{ end }} + +{{ define "scripts" }} + + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/layout/pagination.html b/layouts/partials/layout/pagination.html index 3f5a248..90ee66c 100755 --- a/layouts/partials/layout/pagination.html +++ b/layouts/partials/layout/pagination.html @@ -1,21 +1,27 @@ -{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} - + + +{{ end }} \ No newline at end of file diff --git a/layouts/wiki/single.html b/layouts/wiki/header.html similarity index 72% rename from layouts/wiki/single.html rename to layouts/wiki/header.html index 4eb060d..2a58204 100644 --- a/layouts/wiki/single.html +++ b/layouts/wiki/header.html @@ -1,5 +1,4 @@ -{{ define "main" }} -
+
- -

{{ .Title }}

-
- {{ .Content }} -
-
-{{ end }} \ No newline at end of file +
\ No newline at end of file