From e64976704ca29543f5b0725ff02513d98138e3df Mon Sep 17 00:00:00 2001 From: Jeremy Kidwell Date: Tue, 27 Jun 2017 17:04:27 +0100 Subject: [PATCH] lots of fixes and customisations --- layouts/404.html | 238 ++++++++++++++++++++++----------------------- public/404.html | 169 +++++++++++++++++--------------- public/index.xml | 95 ++++-------------- public/sitemap.xml | 10 ++ 4 files changed, 235 insertions(+), 277 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index 4741a38..8df5e6f 100755 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,142 +1,134 @@ {{ partial "head.html" . }} {{ $baseurl := .Site.BaseURL }} -
- -
+
+
+
-
+ {{ template "partials/sidebar.html" . }} -
+ {{ $baseurl := .Site.BaseURL }} +
+
+
+
-
-

404: Page Not Found

-

- There is no page here at the address you requested. Perhaps try a search to find what you are looking for? -

-
- - - - - - - - - - -
-
+
-
-

Recent News

-
    - {{ range first 10 (where .Data.Pages.ByDate "Section" "news").Reverse }} -
  • {{ .Title | safeHTML }}{{if not (isset .Params "grlog") }}, {{ end }}
  • - {{ end }} -
+
+

404: Page Not Found

+

+ There is no page here at the address you requested. Perhaps try a search to find what you are looking for? +

+
+ + + + + + + + + + +
+
+ +
+

Recent News

+
    + {{ range first 10 (where .Data.Pages.ByDate "Section" "news").Reverse }} +
  • {{ .Title | safeHTML }}{{if not (isset .Params "grlog") }}, {{ end }}
  • + {{ end }} +
- + -

Recent Writing

-
    - {{ range first 5 (where .Data.Pages.ByDate "Section" "writing").Reverse }} -
  • {{ .Params.citation | safeHTML }} -Abstract -{{ if isset .Params "file" }} pdf{{ end }} -
  • - {{ end }} -
- - +

Recent Writing

+
    + {{ range first 5 (where .Data.Pages.ByDate "Section" "writing").Reverse }} +
  • {{ .Params.citation | safeHTML }} + Abstract + {{ if isset .Params "file" }} pdf{{ end }} +
  • + {{ end }} +
- -

Recent & Upcoming Presentations

-
    - {{ range (where .Data.Pages.ByDate "Section" "presentation").Reverse }} - {{ if (ge .Date.Unix now.Unix) }} - {{ if (le .Date.Unix (add now.Unix 10368000)) }} -
  • {{ .Title | safeHTML }}, {{ .Params.host | safeHTML }} ({{ .Date.Format "2 January 2006" }}). {{ partial "comingsoon.html" . }} -
  • - {{ end }} - {{ end }} - {{ if (ge now.Unix .Date.Unix ) }} - {{ if (le now.Unix (add .Date.Unix 12368000)) }} -
  • {{ .Title | safeHTML }}, {{ .Params.host | safeHTML }} ({{ .Date.Format "2 January 2006" }}). -
  • - {{ end }} - {{ end }} - {{ end }} -
- - -

Recent & Upcoming Classes

-
    - {{ range (where .Data.Pages.ByDate "Section" "class").Reverse }} - {{ if (ge .Date.Unix now.Unix) }} - {{ if (le .Date.Unix (add now.Unix 7776000)) }} -
  • {{ .Title }}, {{ .Date.Format "January" }}–{{ .Params.enddate | dateFormat "January 2006" }}. {{ partial "comingsoon.html" . }} -
  • - {{ end }} - {{ end }} - {{ end }} - - {{ range (where .Data.Pages.ByDate "Section" "class").Reverse }} - {{ if (le .Date.Unix now.Unix) }} - {{ if (le now.Unix (add .Date.Unix .Params.duration)) }} -
  • {{ .Title }}, {{ .Date.Format "January" }}–{{ .Params.enddate | dateFormat "January 2006" }}. {{ partial "nowon.html" . }} -
  • - {{ end }} - {{ end }} - {{ end }} - {{ range (where .Data.Pages.ByDate "Section" "class").Reverse }} - {{ $classend := (add .Date.Unix .Params.duration) }} - {{ if (ge now.Unix $classend ) }} - {{ if (le now.Unix (add $classend 10368000)) }} - -
  • {{ .Title }}, {{ .Date.Format "January" }}–{{ .Params.enddate | dateFormat "January 2006" }}. completed -
  • - {{ end }} - {{ end }} - {{ end }} -
+ - -
-
+

Recent & Upcoming Presentations

+
    + {{ range (where .Data.Pages.ByDate "Section" "presentation").Reverse }} + {{ if (ge .Date.Unix now.Unix) }} + {{ if (le .Date.Unix (add now.Unix 10368000)) }} +
  • {{ .Title | safeHTML }}, {{ .Params.host | safeHTML }} ({{ .Date.Format "2 January 2006" }}). {{ partial "comingsoon.html" . }} +
  • + {{ end }} + {{ end }} + {{ if (ge now.Unix .Date.Unix ) }} + {{ if (le now.Unix (add .Date.Unix 12368000)) }} +
  • {{ .Title | safeHTML }}, {{ .Params.host | safeHTML }} ({{ .Date.Format "2 January 2006" }}). +
  • + {{ end }} + {{ end }} + {{ end }} +
+ -
+

Recent & Upcoming Classes

+ -
+ +
+ -{{ partial "whatisthis.html" . }} + -{{ partial "foot.html" . }} - - \ No newline at end of file + +
+ + {{ partial "whatisthis.html" . }} + + {{ partial "foot.html" . }} + + \ No newline at end of file diff --git a/public/404.html b/public/404.html index 558372e..5b12b95 100644 --- a/public/404.html +++ b/public/404.html @@ -19,98 +19,107 @@ -
- -
+
+
+
-
+ -
-
-

404: Page Not Found

-

- There is no page here at the address you requested. Perhaps try a search to find what you are looking for? -

-
- - - - - - - - - - -
-
+ +
+
+
+
-
-

Recent News

-
    - -
+
+ +
+

404: Page Not Found

+

+ There is no page here at the address you requested. Perhaps try a search to find what you are looking for? +

+
+ + + + + + + + + + +
+
+ +
+

Recent News

+
    + +
- + -

Recent Writing

-
    - -
- - +

Recent Writing

+
    + +
- -

Recent & Upcoming Presentations

-
    - -
- - -

Recent & Upcoming Classes

-
    - - - - -
+ - -
-
+

Recent & Upcoming Presentations

+
    + +
+ -
+

Recent & Upcoming Classes

+ -
+ +
+ -
+
+ + +
+ +

about

@@ -151,9 +160,9 @@
-