Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion assets/js/theme/design-system/components/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ window.osuny.Search.prototype.setPageFind = function () {
var options = {
element: this.element,
showSubResults: false,
translations: osuny.i18n.search
translations: osuny.i18n.search,
showEmptyFilters: false,
openFilters: ['type']
},
attribut;

Expand Down
21 changes: 19 additions & 2 deletions assets/sass/_theme/design-system/search.sass
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@
&__result-title a
@include h4
@include stretched-link
&__filter-name,
&__filter-group-label
display: none
@include media-breakpoint-up(desktop)
&__form
position: relative
Expand All @@ -143,17 +146,31 @@
&__search-input,
&__message
width: columns(8)
&__filter-panel
position: absolute
left: offset(9)
width: columns(3)
top: $spacing-6
text-align: right
&__filter-value
display: flex
flex-direction: row-reverse
input,
label
margin-top: $spacing-1
input
margin-left: $spacing-1
&__results-area
padding-top: $spacing-6
@include media-breakpoint-down(desktop)
&__filter-panel
margin-top: space(16)
&__search-input,
&__message
left: var(--grid-gutter)
right: var(--grid-gutter)
&__message
top: space(46)
&__results-area
padding-top: space(17)

// Toggle button appareance

Expand Down
1 change: 1 addition & 0 deletions layouts/_partials/diplomas/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "diplomas/single/hero.html" . }}
{{ partial "diplomas/single/pagefind.html" . }}

<div class="document-content">

Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/diplomas/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Diplômes">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/events/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "events/single/hero.html" . }}
{{ partial "events/single/pagefind.html" . }}

<div itemscope itemtype="https://schema.org/Event">
{{ partial "commons/agenda/access.html" . }}
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/events/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Evénements">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/exhibitions/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "exhibitions/single/hero.html" . }}
{{ partial "exhibitions/single/pagefind.html" . }}

<div itemscope itemtype="https://schema.org/Event">
{{ partial "commons/agenda/access.html" . }}
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/exhibitions/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Expositions">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/jobs/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "jobs/single/hero.html" . }}
{{ partial "jobs/single/pagefind.html" . }}

<div class="document-content" itemscope itemtype="https://schema.org/JobPosting">
<meta itemprop="title" content="{{ safeHTML .Title }}">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/jobs/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Offres d'emploi">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/locations/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "locations/single/hero.html" . }}
{{ partial "locations/single/pagefind.html" . }}

<div class="document-content" itemscope itemtype="https://schema.org/EducationalOrganization">
<meta itemprop="name" content="{{ safeHTML .Title }}">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/locations/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Sites">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/organizations/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "organizations/single/hero.html" . }}
{{ partial "organizations/single/pagefind.html" . }}

<div class="document-content" itemscope itemtype="https://schema.org/Organization">

Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/organizations/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Organisations">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/pages/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "pages/single/hero.html" . }}
{{ partial "pages/single/pagefind.html" . }}
{{ partial "hooks/after-page-hero.html" . }}

<div class="document-content">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/pages/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Pages">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/papers/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "papers/section/hero.html" . }}
{{ partial "papers/single/pagefind.html" . }}

<div class="document-content sidebar-on-{{ site.Params.papers.sidebar.direction }}" itemscope itemtype="https://schema.org/ScholarlyArticle">
<meta itemprop="name" content="{{ safeHTML .Title }}">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/papers/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Papiers">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/persons/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "persons/single/hero.html" . }}
{{ partial "persons/single/pagefind.html" . }}

<div class="document-content">
{{ partial "toc/container.html" (dict
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/persons/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Personnes">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/posts/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "posts/single/hero.html" . }}
{{ partial "posts/single/pagefind.html" . }}

<div class="document-content" itemscope itemtype="https://schema.org/NewsArticle">
<meta itemprop="headline" content="{{ safeHTML .Title }}">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/posts/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Articles">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/programs/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "programs/single/hero.html" . }}
{{ partial "programs/single/pagefind.html" . }}

<div class="document-content {{ with .Params.diplomas }}diploma-{{.}}{{ end }}" itemscope itemtype="https://schema.org/EducationalOccupationalCredential">
<meta itemprop="name" content="{{ safeHTML .Title }}">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/programs/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Formations">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/projects/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "projects/single/hero.html" . }}
{{ partial "projects/single/pagefind.html" . }}

<div class="document-content" itemscope itemtype="https://schema.org/CreativeWork">
<meta itemprop="name" content="{{ safeHTML .Title }}">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/projects/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Projets">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/publications/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "publications/single/hero.html" . }}
{{ partial "publications/single/pagefind.html" . }}

<div class="document-content" itemscope itemtype="https://schema.org/ScholarlyArticle">
<meta itemprop="name" content="{{ safeHTML .Title }}">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/publications/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Publications">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/schools/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "schools/single/hero.html" . }}
{{ partial "schools/single/pagefind.html" . }}

<div class="document-content" itemscope itemtype="https://schema.org/CollegeOrUniversity">
<meta itemprop="title" content="{{ safeHTML .Title }}">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/schools/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Écoles">
{{ end }}
1 change: 1 addition & 0 deletions layouts/_partials/volumes/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ partial "volumes/section/hero.html" . }}
{{ partial "volumes/single/pagefind.html" . }}

<div class="document-content" itemscope itemtype="https://schema.org/PublicationVolume">
<meta itemprop="name" content="{{ safeHTML .Title }}">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_partials/volumes/single/pagefind.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ if site.Params.search.active }}
<meta data-pagefind-filter="type[content]" content="Volumes">
{{ end }}
Loading