diff --git a/config.toml b/config.toml index 0d8bc0976..f7005b978 100644 --- a/config.toml +++ b/config.toml @@ -111,10 +111,16 @@ enableEmoji = true parent = "publications" weight = 2 +[[menu.main]] + identifier = "resources" + name = "Resources" + url = "/resources/" + weight = 7 + [[menu.main]] name = "News" identifier = "news" - weight = 7 + weight = 8 [[menu.main]] identifier = "Our news" @@ -130,11 +136,6 @@ enableEmoji = true parent = "news" weight = 2 -#[[menu.main]] -# name = "Blog" -# url = "/blog/" -# weight = 8 - [permalinks] post = "/:year/:month/:day/:slug/" pages = "/:filename/" diff --git a/content/resources/_index.md b/content/resources/_index.md new file mode 100644 index 000000000..fe0402cb7 --- /dev/null +++ b/content/resources/_index.md @@ -0,0 +1,8 @@ +--- +title: 'Resources' +heroHeading: 'Resources' +heroSubHeading: '' +heroBackground: '/images/SouthAtlantic.A2002157.1055.250m.jpg' +--- + +🚧 Under Development 🚧 diff --git a/content/sitevisit/_index.md b/content/sitevisit/_index.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/themes/hugo-hero-theme/layouts/resources/list.html b/themes/hugo-hero-theme/layouts/resources/list.html new file mode 100644 index 000000000..2f93b27dd --- /dev/null +++ b/themes/hugo-hero-theme/layouts/resources/list.html @@ -0,0 +1,27 @@ +{{ define "header_css" }}{{ end }} +{{ define "body_classes" }}page-work-list{{ end }} +{{ define "header_classes" }}{{ end }} + +{{ define "main" }} + +{{ partial "hero-image-setheight.html" (dict "background" .Params.heroBackground "heading" .Params.heroHeading "subheading" .Params.heroSubHeading "content" .)}} +{{ if .Content }} +
+
+
+
+ {{ .Content }} +
+
+
+
+{{ end }} + +
+
+ {{ range .Pages.ByWeight }} +
{{ .Render "summary" }}
+ {{ end }} +
+
+{{ end }} diff --git a/themes/hugo-hero-theme/layouts/resources/single.html b/themes/hugo-hero-theme/layouts/resources/single.html new file mode 100644 index 000000000..0e160b432 --- /dev/null +++ b/themes/hugo-hero-theme/layouts/resources/single.html @@ -0,0 +1,39 @@ +{{ define "header_css" }}{{ end }} +{{ define "body_classes" }}page-work-single{{ end }} +{{ define "header_classes" }}{{ end }} + +{{ define "main" }} +{{ partial "hero-image-setheight.html" (dict "background" .Params.heroBackground "heading" .Params.heroHeading "subheading" .Params.heroSubHeading "section" .Section "content" .)}} +
+
+
+
+
{{.Content}}
+
+
+ {{ if .Params.images }} +
+

Gallery

+
+ {{ range .Params.images }} +
+ +
+ {{ end }} +
+
+ {{ end }} +
+
+{{ end }} + +{{ define "footer_js" }} +{{ $library := resources.Get "js/libs/library.js" }} +{{ $services := resources.Get "js/pages/services.js" }} +{{ $servicesJS := slice $library $services |resources.Concat "js/services.js" }} +{{ if .Site.IsServer }} + + {{ else }} + + {{ end }} +{{ end }} diff --git a/themes/hugo-hero-theme/layouts/resources/summary.html b/themes/hugo-hero-theme/layouts/resources/summary.html new file mode 100644 index 000000000..a320958e0 --- /dev/null +++ b/themes/hugo-hero-theme/layouts/resources/summary.html @@ -0,0 +1,13 @@ +
+ {{ if .Params.thumbnail }} +
+ +
+ {{ end }} +
+

+ {{ .Title }} +

+ {{ .Content | truncate 120 "..." }} +
+
diff --git a/themes/hugo-hero-theme/layouts/sitevisit/list.html b/themes/hugo-hero-theme/layouts/sitevisit/list.html deleted file mode 100644 index aa0daf3ad..000000000 --- a/themes/hugo-hero-theme/layouts/sitevisit/list.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - Password Protected - - - - - - - - - - -
-
You entered the wrong password
-
-

You need a password to continue

- - -
-
- - - - -