Unverified Commit f30c92a3 authored by Christopher Guindon's avatar Christopher Guindon Committed by GitHub
Browse files

fix adopters (#233)



* fix adopters
Signed-off-by: Christopher Guindon's avatarChristopher Guindon <chris.guindon@eclipse-foundation.org>

* fix adopters
Signed-off-by: Christopher Guindon's avatarChristopher Guindon <chris.guindon@eclipse-foundation.org>
parent 0ebe9468
......@@ -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">
......@@ -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>
\ No newline at end of file
......@@ -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>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment