Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
fix adopters (#233)
Browse files Browse the repository at this point in the history
* fix adopters

Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>

* fix adopters

Signed-off-by: Christopher Guindon <chris.guindon@eclipse-foundation.org>
  • Loading branch information
chrisguindon committed Jul 13, 2021
1 parent 0ebe946 commit f30c92a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
23 changes: 19 additions & 4 deletions layouts/partials/footer_js.html
Expand Up @@ -3,12 +3,12 @@
{{- with .Site.Params.js | default "https://www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/main.min.js"}}
<script src="{{ . | relURL }}"></script>
{{ end }}
{{ if isset .Site.Params "hugo_js" }}
{{- with .Site.Params.hugo_js }}
<script src="{{ . | relURL }}"></script>
{{ end }}

{{- with .Site.Params.hugo_js }}
<script src="{{ . | relURL }}"></script>
{{ end }}


<!-- Read in mustache templates registered in page scratch -->
{{ range $key, $value := (.Page.Scratch.Get "mustache-templates") }}
<script id="{{ $key }}" type="text/html">
Expand All @@ -30,4 +30,19 @@
});
{{ end }}
})(jQuery, document);
</script>

<script>
(function (eclipseFdnAdopters, eclipsefdn_adopters_configs) {
if (
eclipsefdn_adopters_configs.working_group &&
eclipsefdn_adopters_configs.ul_classes
) {
eclipseFdnAdopters.getWGList({
src_root: 'https://api.eclipse.org/adopters',
working_group: eclipsefdn_adopters_configs.working_group,
ul_classes: eclipsefdn_adopters_configs.ul_classes,
});
}
})(eclipseFdnAdopters, eclipsefdn_adopters_configs);
</script>
7 changes: 5 additions & 2 deletions layouts/shortcodes/eclipsefdn_adopters.html
Expand Up @@ -15,5 +15,8 @@

<div id="{{ $container_id }}" class="{{ $class }}"></div>
<script>
eclipseFdnAdopters.getWGList({src_root: "https://api.eclipse.org/adopters", working_group: "{{ $working_group }}", ul_classes: "{{ $ul_classes }}"})
</script>
var eclipsefdn_adopters_configs = {
working_group: "{{ $working_group }}",
ul_classes: "{{ $ul_classes }}"
}
</script>

0 comments on commit f30c92a

Please sign in to comment.