Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
d4956c2
test
arnaudlevy Feb 10, 2026
c883df2
test
alexisben Feb 10, 2026
652ff13
test lint
alexisben Feb 10, 2026
662ac5b
message
arnaudlevy Feb 10, 2026
28fc5a7
Merge branch 'lint' of github.com:osunyorg/theme into lint
arnaudlevy Feb 10, 2026
4f1b65b
python
arnaudlevy Feb 10, 2026
51d3fec
test
arnaudlevy Feb 10, 2026
c0d67df
test
arnaudlevy Feb 10, 2026
a6eb820
test
arnaudlevy Feb 10, 2026
94411a1
test
arnaudlevy Feb 10, 2026
a320e8d
test
arnaudlevy Feb 10, 2026
d002884
test
arnaudlevy Feb 10, 2026
17d71a9
test
arnaudlevy Feb 10, 2026
be9fe2c
test
arnaudlevy Feb 10, 2026
fa6df01
test
arnaudlevy Feb 10, 2026
5518f92
test
arnaudlevy Feb 10, 2026
307e3ca
test
arnaudlevy Feb 10, 2026
c092607
better
arnaudlevy Feb 10, 2026
cb46c05
ignore
arnaudlevy Feb 10, 2026
57a6fe6
complexity
arnaudlevy Feb 10, 2026
a18f47c
ruby
arnaudlevy Feb 10, 2026
4ea297e
table
arnaudlevy Feb 10, 2026
30da7e0
test
arnaudlevy Feb 11, 2026
b58a95c
test
arnaudlevy Feb 11, 2026
7714de6
refactor
arnaudlevy Feb 11, 2026
f761f0f
refactor
arnaudlevy Feb 11, 2026
5bbc261
refactor
arnaudlevy Feb 11, 2026
bbfd278
refac
arnaudlevy Feb 11, 2026
befad32
lines
arnaudlevy Feb 11, 2026
2b219b3
cpx
arnaudlevy Feb 11, 2026
bb665de
wip
arnaudlevy Feb 11, 2026
6a28707
messages
arnaudlevy Feb 11, 2026
d332163
title
arnaudlevy Feb 11, 2026
c66e706
wip
arnaudlevy Feb 12, 2026
ea17a7e
call
arnaudlevy Feb 12, 2026
2841036
exclusions
arnaudlevy Feb 12, 2026
f19bb0b
lint
arnaudlevy Feb 12, 2026
82ada46
calls
arnaudlevy Feb 12, 2026
f5a3200
fix
arnaudlevy Feb 12, 2026
f3c780b
Merge branch 'main' into lint
arnaudlevy Feb 12, 2026
9993386
credit
arnaudlevy Feb 12, 2026
fa35a6e
llint
arnaudlevy Feb 12, 2026
0eb2654
lines
arnaudlevy Feb 13, 2026
8fdf05f
helper calls
arnaudlevy Feb 13, 2026
9748b14
merge
arnaudlevy Feb 19, 2026
32cba52
fix paths
arnaudlevy Feb 19, 2026
09a0947
paths
arnaudlevy Feb 19, 2026
0cb4382
move helper
arnaudlevy Feb 19, 2026
1b7ecc9
clean calls
arnaudlevy Feb 19, 2026
6baab11
done
arnaudlevy Feb 19, 2026
4a0e596
refactor
arnaudlevy Feb 19, 2026
ce5e005
layouts
arnaudlevy Feb 19, 2026
eb774d5
simplify
arnaudlevy Feb 19, 2026
58b0047
test
arnaudlevy Feb 19, 2026
7b59304
remove
arnaudlevy Feb 19, 2026
c7f8045
fix
arnaudlevy Feb 19, 2026
1c9ae51
Merge branch 'main' into refactor-taxonomies
SebouChu Feb 26, 2026
7df3c1a
Merge branch 'main' into refactor-taxonomies
SebouChu Mar 2, 2026
636a4e7
Merge branch 'main' into refactor-taxonomies
SebouChu Mar 2, 2026
57dca32
Merge branch 'main' into refactor-taxonomies
SebouChu Mar 2, 2026
e830414
Merge branch 'main' into refactor-taxonomies
arnaudlevy Mar 2, 2026
e9e3e2e
Merge branch 'main' into refactor-taxonomies
arnaudlevy Mar 3, 2026
441fc34
merge
arnaudlevy Mar 3, 2026
d59fab5
Merge branch 'main' into refactor-taxonomies
arnaudlevy Mar 3, 2026
f2b3296
fix
alexisben Mar 3, 2026
6348b3a
Merge branch 'refactor-taxonomies' of github.com:osunyorg/theme into …
alexisben Mar 3, 2026
189b297
space
alexisben Mar 3, 2026
b0e977f
dict order
alexisben Mar 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions layouts/_partials/categories/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
) }}

{{ partial "categories/single/summary.html" (dict
"context" .
"block_wrapped" true
"context" .
) }}

{{ partial "taxonomies/term-list-container.html" (dict "taxonomy" .Type) }}
{{ partial "taxonomies/single/term.html" (dict "taxonomy" .Type) }}

{{ partial "contents/list.html" (dict
"context" .
"contents" .Params.contents
"context" .
) }}

{{ partial "categories/single/categories.html" (dict
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/events/section/filters/taxonomies.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</button>
</div>
<div class="offcanvas-content">
{{ partial "taxonomies/section-list.html" . }}
{{ partial "taxonomies/section/list.html" . }}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/events/single/event-infos.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

{{ if .Params.events_categories }}
<li>
{{ partial "taxonomies/single-list.html" . }}
{{ partial "taxonomies/single/list.html" . }}
</li>
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/events_categories/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"contents" .Params.contents
) }}

{{ partial "taxonomies/section-list-container.html" . }}
{{ partial "taxonomies/section/container.html" . }}

{{ if site.Params.events.index.highlight_exhibitions.active }}
{{ $exhibitions := where .Pages "Section" "exhibitions" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/exhibitions/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
) }}
{{ end }}

{{ partial "taxonomies/section-list-container.html" . }}
{{ partial "taxonomies/section/container.html" . }}

<div class="container">
{{ partial "exhibitions/partials/exhibitions.html" (dict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

{{ if .Params.exhibitions_categories }}
<li>
{{ partial "taxonomies/single-list.html" . }}
{{ partial "taxonomies/single/list.html" . }}
</li>
{{ end }}
{{ if site.Params.exhibitions.share_links.enabled | default site.Params.share_links.enabled }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/_partials/header/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ <h1 {{ $title_attribute }}>{{ safeHTML .title }}</h1>
{{ partial .hero_text_complement .context }}
{{ end }}

{{ $taxonomies_position := partial "GetTaxonomiesPosition" .context }}
{{ $taxonomies_position := partial "taxonomies/helpers/GetPosition" .context }}
{{ if and .context.Params.taxonomies (eq $taxonomies_position "hero") }}
{{ partial "taxonomies/single-list.html" .context }}
{{ partial "taxonomies/single/list.html" .context }}
{{ end }}

{{ if or $button .share }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/jobs/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
) }}
{{ end }}

{{ partial "taxonomies/section-list-container.html" . }}
{{ partial "taxonomies/section/container.html" . }}

<div class="container">
{{ partial "jobs/partials/jobs.html" . }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/_partials/jobs/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

{{ partial "jobs/single/sidebar.html" . }}

{{ $taxonomies_position := partial "GetTaxonomiesPosition" . }}
{{ $taxonomies_position := partial "taxonomies/helpers/GetPosition" . }}
{{ if and .Params.design.full_width .Params.taxonomies (eq $taxonomies_position "content") }}
<div class="container">
{{ partial "taxonomies/single-list-container.html" . }}
{{ partial "taxonomies/single/container.html" . }}
</div>
{{ end }}

Expand Down
4 changes: 2 additions & 2 deletions layouts/_partials/jobs/single/job-infos.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

<ul class="job-infos">
{{ $taxonomies_position := partial "GetTaxonomiesPosition" . }}
{{ $taxonomies_position := partial "taxonomies/helpers/GetPosition" . }}
{{ if ne $taxonomies_position "hero" }}
{{ if .Params.jobs_categories }}
<li>
{{ partial "taxonomies/single-list.html" . }}
{{ partial "taxonomies/single/list.html" . }}
</li>
{{ end }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/organizations/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
) }}
{{ end }}

{{ partial "taxonomies/section-list-container.html" . }}
{{ partial "taxonomies/section/container.html" . }}

{{- if not $is_organizations_block_present -}}
<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/organizations/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
{{ end }}

{{ partial "taxonomies/single-list-container.html" . }}
{{ partial "taxonomies/single/container.html" . }}

{{ partial "commons/contact-details.html" (dict "subject" .) }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/pages/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

{{ if and .Params.taxonomies (eq site.Params.pages.single.taxonomies.position "content") }}
<div class="container taxonomies-container">
{{ partial "taxonomies/single-list.html" . }}
{{ partial "taxonomies/single/list.html" . }}
</div>
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/persons/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
) }}
{{ end }}

{{ partial "taxonomies/section-list-container.html" . }}
{{ partial "taxonomies/section/container.html" . }}

{{- if not $is_block_persons_present -}}
<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/persons/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</div>
{{ end }}

{{ partial "taxonomies/single-list-container.html" . }}
{{ partial "taxonomies/single/container.html" . }}

{{ partial "commons/contact-details.html" (dict "subject" .) }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/posts/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
) }}
{{ end }}

{{ partial "taxonomies/section-list-container.html" . }}
{{ partial "taxonomies/section/container.html" . }}

<div class="container">
{{ partial "posts/partials/posts.html" . }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/_partials/posts/single/post-infos.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<ul class="post-infos">
{{ $taxonomies_position := partial "GetTaxonomiesPosition" . }}
{{ $taxonomies_position := partial "taxonomies/helpers/GetPosition" . }}
{{ if ne $taxonomies_position "hero" }}
{{ if .Params.posts_categories }}
<li>
{{ partial "taxonomies/single-list.html" . }}
{{ partial "taxonomies/single/list.html" . }}
</li>
{{ end }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/programs/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"contents" .Params.contents
) }}

{{ partial "taxonomies/section-list-container.html" . }}
{{ partial "taxonomies/section/container.html" . }}

<div class="container">
{{ partial "diplomas/section/diplomas-select.html" . }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_partials/programs/single/taxonomies.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ if .Params.taxonomies }}
<section>
<div class="container taxonomies-container">
{{ partial "taxonomies/single-list.html" . }}
{{ partial "taxonomies/single/list.html" . }}
</div>
</section>
{{ end }}
2 changes: 1 addition & 1 deletion layouts/_partials/projects/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
) }}
{{ end }}

{{ partial "taxonomies/section-list-container.html" . }}
{{ partial "taxonomies/section/container.html" . }}

<div class="container">
{{ partial "projects/partials/projects.html" . }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/_partials/projects/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

{{ partial "projects/single/sidebar.html" . }}

{{ $taxonomies_position := partial "GetTaxonomiesPosition" . }}
{{ $taxonomies_position := partial "taxonomies/helpers/GetPosition" . }}
{{ if and .Params.design.full_width .Params.taxonomies (eq $taxonomies_position "content") }}
<div class="container">
{{ partial "taxonomies/single-list-container.html" . }}
{{ partial "taxonomies/single/container.html" . }}
</div>
{{ end }}

Expand Down
4 changes: 2 additions & 2 deletions layouts/_partials/projects/single/project-infos.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

<ul class="project-infos">
{{ $taxonomies_position := partial "GetTaxonomiesPosition" . }}
{{ $taxonomies_position := partial "taxonomies/helpers/GetPosition" . }}
{{ if ne $taxonomies_position "hero" }}
{{ if .Params.projects_categories }}
<li>
{{ partial "taxonomies/single-list.html" . }}
{{ partial "taxonomies/single/list.html" . }}
</li>
{{ end }}
{{ end }}
Expand Down
38 changes: 0 additions & 38 deletions layouts/_partials/taxonomies/section-list.html

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if .Params.section_taxonomies }}
<div class="section-taxonomies-container">
{{ partial "taxonomies/section-list.html" . }}
{{ partial "taxonomies/section/list.html" . }}
</div>
{{ end }}
10 changes: 10 additions & 0 deletions layouts/_partials/taxonomies/section/layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="taxonomy-categories">
{{ if .show_name }}<span>{{ .taxonomy.name }}</span>{{ end }}
{{ $categories := partial "GetObjectsFromPathSlice" .taxonomy.categories }}
{{ partial "commons/categories.html" (dict
"categories" $categories
"depth" true
"class" "taxonomy-categories-list"
"kind" .type
) }}
</div>
17 changes: 17 additions & 0 deletions layouts/_partials/taxonomies/section/layouts/dropdown.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{ $categories := partial "GetObjectsFromPathSlice" .taxonomy.categories }}
<div class="dropdown">
<button aria-controls="categories-{{ .taxonomy.slug }}" aria-expanded="false">
{{ .taxonomy.name }}
</button>
<div id="categories-{{ .taxonomy.slug }}"
class="extendable taxonomy-categories"
data-extendable-close-siblings="true"
data-extendable-auto-close="true">
{{ partial "commons/categories.html" (dict
"categories" $categories
"depth" true
"class" "taxonomy-categories-list"
"kind" .type
) }}
</div>
</div>
26 changes: 26 additions & 0 deletions layouts/_partials/taxonomies/section/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{ $type := .Type }}
{{ $taxonomies := .Params.section_taxonomies }}
{{ $param := (printf "%s.index.taxonomies" $type) }}
{{ $options := partial "GetSiteParamWithDefault" (dict
"param" $param
"default" "default.index.taxonomies"
) }}
{{ if $options.display }}
<div class="taxonomies-list taxonomies-list--{{ $options.layout }}">
{{ range $taxonomies }}
{{ if .categories }}
{{ if eq $options.layout "dropdown" }}
{{ partial "taxonomies/section/layouts/dropdown.html" (dict
"taxonomy" .
"type" $type
) }}
{{ else }}
{{ partial "taxonomies/section/layouts/default.html" (dict
"taxonomy" .
"show_name" $options.show_name
) }}
{{ end }}
{{ end }}
{{ end }}
</div>
{{ end }}
43 changes: 0 additions & 43 deletions layouts/_partials/taxonomies/single-list.html

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $taxonomies_position := partial "GetTaxonomiesPosition" . }}
{{ $taxonomies_position := partial "taxonomies/helpers/GetPosition" . }}
{{ if and .Params.taxonomies (eq $taxonomies_position "content") }}
<div class="taxonomies-container">
{{ partial "taxonomies/single-list.html" . }}
{{ partial "taxonomies/single/list.html" . }}
</div>
{{ end }}
Loading