diff --git a/README.md b/README.md index c95c9e739..1898fb19a 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -Theme for gohugo.io sites. More info to come. +# GoHugo Sites Theme + +Theme for gohugo.io sites: +* [https://gohugo.io/](https://gohugo.io/) +* [https://themes.gohugo.io/](https://themes.gohugo.io/) + +More info to come. diff --git a/data/sponsors.toml b/data/sponsors.toml index eb9964f39..9261ffc78 100644 --- a/data/sponsors.toml +++ b/data/sponsors.toml @@ -12,6 +12,6 @@ copy = "" [[banners]] name = "eSolia" -link = "https://esolia.com/" +link = "https://esolia.com/post/why-did-esolia-choose-hugo/" logo = "/images/sponsors/esolia-logo.svg" copy = "" \ No newline at end of file diff --git a/layouts/404.html b/layouts/404.html old mode 100755 new mode 100644 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html old mode 100755 new mode 100644 diff --git a/layouts/_default/list.html b/layouts/_default/list.html old mode 100755 new mode 100644 index a0835342a..3b7a2307e --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,4 +1,5 @@ {{ define "main" }} - {{ $section_to_display := .Sections | default .Paginator.Pages }} + {{ $paginator := .Paginate (.Pages | lang.Merge (where .Sites.First.RegularPages "Section" .Section)) }} + {{ $section_to_display := .Sections | default $paginator.Pages }} {{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display ) }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html old mode 100755 new mode 100644 diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 9968398b2..77d1812d9 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,4 +1,4 @@ {{ define "main" }} - {{ $section_to_display := .Data.Pages }} + {{ $section_to_display := .Pages }} {{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display ) }} {{ end }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 28795cf44..f6b566656 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,6 +1,6 @@ {{/* {{ define "header" }}{{ partial "page-header" . }}{{ end }} */}} {{ define "main" }} -{{ $section_to_display := .Data.Pages }} +{{ $section_to_display := .Pages }}
diff --git a/layouts/news/list.html b/layouts/news/list.html index 716966e17..5a5284658 100644 --- a/layouts/news/list.html +++ b/layouts/news/list.html @@ -28,7 +28,8 @@ {{ $interior_classes := $.Site.Params.flex_box_interior_classes }}
- {{ range .Paginator.Pages }} + {{ $paginator := .Paginate (.Pages | lang.Merge (where .Sites.First.RegularPages "Section" .Section)) -}} + {{ range $paginator.Pages }} {{ partial "boxes-section-summaries" (dict "context" . "classes" $interior_classes "fullcontent" false) }} {{ end }}
diff --git a/layouts/page/documentation-home.html b/layouts/page/documentation-home.html index 04b57d4ca..91f744c30 100644 --- a/layouts/page/documentation-home.html +++ b/layouts/page/documentation-home.html @@ -1,4 +1,4 @@ {{ define "main" }} -{{ $section_to_display := (.Site.Taxonomies.categories.fundamentals).Pages }} +{{ $section_to_display := (.Site.Taxonomies.categories.fundamentals).Pages | lang.Merge (.Sites.First.Taxonomies.categories.fundamentals).Pages }} {{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display ) }} {{ end }} diff --git a/layouts/partials/boxes-small-news.html b/layouts/partials/boxes-small-news.html old mode 100755 new mode 100644 index ad254b6aa..0d89f057f --- a/layouts/partials/boxes-small-news.html +++ b/layouts/partials/boxes-small-news.html @@ -3,7 +3,7 @@ - {{ range first 4 ( sort (where .Data.Pages "Section" "news") "Date" "desc" ) }} + {{ range first 4 ( sort (where .Pages "Section" "news") "Date" "desc" ) }} {{ $.Scratch.Add "i" 1 }}{{ $i := $.Scratch.Get "i" }} diff --git a/layouts/partials/home-page-sections/showcase.html b/layouts/partials/home-page-sections/showcase.html index 774c10e0f..c73cfa5e9 100644 --- a/layouts/partials/home-page-sections/showcase.html +++ b/layouts/partials/home-page-sections/showcase.html @@ -5,10 +5,12 @@
{{ $showcasePages := where .Site.RegularPages "Section" "showcase" }} + {{ if $showcasePages }} {{ template "home_showcase_item" (index $showcasePages 0) }} {{ range $p := first 10 ($showcasePages | after 1 | shuffle) }} {{template "home_showcase_item" $p }} {{end}} + {{end}}
diff --git a/layouts/partials/icon-link.html b/layouts/partials/icon-link.html old mode 100755 new mode 100644 diff --git a/layouts/partials/manifest.html b/layouts/partials/manifest.html old mode 100755 new mode 100644 diff --git a/layouts/partials/nav-links-docs.html b/layouts/partials/nav-links-docs.html index 444715471..61aa11dde 100644 --- a/layouts/partials/nav-links-docs.html +++ b/layouts/partials/nav-links-docs.html @@ -6,18 +6,18 @@
  • {{ .Name }} - {{ if .HasChildren }} - - {{end}} -
  • - {{end}} + {{- if .HasChildren }} + + {{- end}} + + {{- end}} diff --git a/layouts/partials/nav-links.html b/layouts/partials/nav-links.html old mode 100755 new mode 100644 diff --git a/layouts/partials/nav-top.html b/layouts/partials/nav-top.html old mode 100755 new mode 100644 diff --git a/layouts/partials/page-edit.html b/layouts/partials/page-edit.html old mode 100755 new mode 100644 index ba9c2bdcf..edf84669e --- a/layouts/partials/page-edit.html +++ b/layouts/partials/page-edit.html @@ -1,3 +1,3 @@ -Improve this page diff --git a/layouts/partials/site-footer.html b/layouts/partials/site-footer.html old mode 100755 new mode 100644 diff --git a/layouts/partials/site-nav.html b/layouts/partials/site-nav.html old mode 100755 new mode 100644 diff --git a/layouts/partials/svg/apple.svg b/layouts/partials/svg/apple.svg old mode 100755 new mode 100644 diff --git a/layouts/partials/svg/facebook.svg b/layouts/partials/svg/facebook.svg old mode 100755 new mode 100644 diff --git a/layouts/partials/svg/freebsd.svg b/layouts/partials/svg/freebsd.svg old mode 100755 new mode 100644 diff --git a/layouts/partials/svg/github-squared.svg b/layouts/partials/svg/github-squared.svg old mode 100755 new mode 100644 diff --git a/layouts/partials/svg/gopher-front.svg b/layouts/partials/svg/gopher-front.svg old mode 100755 new mode 100644 diff --git a/layouts/partials/svg/gopher-side_path.svg b/layouts/partials/svg/gopher-side_path.svg old mode 100755 new mode 100644 diff --git a/layouts/partials/svg/instagram.svg b/layouts/partials/svg/instagram.svg old mode 100755 new mode 100644 diff --git a/layouts/partials/svg/link-ext.svg b/layouts/partials/svg/link-ext.svg old mode 100755 new mode 100644 diff --git a/layouts/partials/svg/md.svg b/layouts/partials/svg/md.svg old mode 100755 new mode 100644 diff --git a/layouts/partials/svg/windows.svg b/layouts/partials/svg/windows.svg old mode 100755 new mode 100644 diff --git a/layouts/robots.txt b/layouts/robots.txt old mode 100755 new mode 100644 diff --git a/src/css/_columns.css b/src/css/_columns.css old mode 100755 new mode 100644 diff --git a/src/css/_tachyons.css b/src/css/_tachyons.css old mode 100755 new mode 100644 diff --git a/src/css/_variables.css b/src/css/_variables.css old mode 100755 new mode 100644 diff --git a/src/css/main.css b/src/css/main.css old mode 100755 new mode 100644 diff --git a/src/css/postcss.config.js b/src/css/postcss.config.js old mode 100755 new mode 100644 diff --git a/src/js/main.js b/src/js/main.js old mode 100755 new mode 100644 diff --git a/src/package.json b/src/package.json old mode 100755 new mode 100644 diff --git a/src/readme.md b/src/readme.md old mode 100755 new mode 100644 diff --git a/src/webpack.config.js b/src/webpack.config.js old mode 100755 new mode 100644 diff --git a/static/images/gopher-side_color.svg b/static/images/gopher-side_color.svg old mode 100755 new mode 100644 diff --git a/static/images/homepage-screenshot-hugo-themes.jpg b/static/images/homepage-screenshot-hugo-themes.jpg old mode 100755 new mode 100644 diff --git a/theme.toml b/theme.toml index 7334c0e2e..fe55ec76e 100644 --- a/theme.toml +++ b/theme.toml @@ -8,7 +8,7 @@ description = "" homepage = "https://github.com/budparr/gohugo.io" tags = ["website"] features = ["", ""] -min_version = 0.18 +min_version = 0.38 [author] name = "Bud Parr"