Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Commit

Permalink
Member listing should be sorting alphabetically *and* case-... #255
Browse files Browse the repository at this point in the history
Added sort to all member ranges based on member Title.

Signed-off-by: Martin Lowe <martin.lowe@eclipse-foundation.org>
  • Loading branch information
autumnfound committed Dec 6, 2019
1 parent 9b24f8a commit 14b23dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -4,7 +4,7 @@ node_js:
- "12"
install:
- npm ci
- wget https://github.com/gohugoio/hugo/releases/download/v0.54.0/hugo_0.54.0_Linux-64bit.deb
- wget https://github.com/gohugoio/hugo/releases/download/v0.57.0/hugo_0.57.0_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
script:
- hugo
Expand Down
6 changes: 3 additions & 3 deletions layouts/membership/members.html
Expand Up @@ -6,7 +6,7 @@
</p>
<h2 class="purple">Strategic members<br /><br /></h2>
<div id="sc-members">
{{ range where .Site.RegularPages.ByTitle "Section" "member" }}
{{ range sort (where .Site.RegularPages.ByTitle "Section" "member") ".Title" }}
{{ if eq .Params.member_type "steering" }}
<div class="row members-info" id="member-{{ .Params.logo }}">
<div class="col-md-2 col-md-offset-1 mb-logo">
Expand Down Expand Up @@ -37,7 +37,7 @@ <h2 id="{{ .Params.logo }}">{{ .Title }} </h2> {{ .Content }}
</div>
<h2 class="purple" style="margin-top: 2em;">Participating members<br /><br /></h2>
<div id="participating-members">
{{ range where .Site.RegularPages.ByTitle "Section" "member" }}
{{ range sort (where .Site.RegularPages.ByTitle "Section" "member") ".Title" }}
{{ if eq .Params.member_type "participating" }}
<div class="row members-info" id="member-{{ .Params.logo }}" title="{{ .Title }}">
<div class="col-md-2 col-md-offset-1 mb-logo">
Expand Down Expand Up @@ -68,7 +68,7 @@ <h2 id="{{ .Params.logo }}">{{ .Title }} </h2> {{ .Content }}
</div>
<h2 class="purple" style="margin-top: 2em;">Guest members<br /><br /></h2>
<div id="guest-members">
{{ range where .Site.RegularPages.ByTitle "Section" "member" }}
{{ range sort (where .Site.RegularPages.ByTitle "Section" "member") ".Title" }}
{{ if eq .Params.member_type "guest" }}
<div class="row members-info" id="member-{{ .Params.logo }}" title="{{ .Title }}">
<div class="col-md-2 col-md-offset-1 mb-logo">
Expand Down
8 changes: 4 additions & 4 deletions netlify.toml
Expand Up @@ -3,28 +3,28 @@ publish = "public"
command = "npm run build_netlify && hugo"

[context.production.environment]
HUGO_VERSION = "0.54.0"
HUGO_VERSION = "0.57.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"

[context.split1]
command = "nnpm run build_netlify && hugo --enableGitInfo"

[context.split1.environment]
HUGO_VERSION = "0.54.0"
HUGO_VERSION = "0.57.0"
HUGO_ENV = "production"

[context.deploy-preview]
command = "npm run build_netlify && hugo --buildFuture -b $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
HUGO_VERSION = "0.54.0"
HUGO_VERSION = "0.57.0"

[context.branch-deploy]
command = "npm run build_netlify && hugo -b $DEPLOY_PRIME_URL"

[context.branch-deploy.environment]
HUGO_VERSION = "0.54.0"
HUGO_VERSION = "0.57.0"

[context.next.environment]
HUGO_ENABLEGITINFO = "true"

0 comments on commit 14b23dd

Please sign in to comment.