diff --git a/config.yaml b/config.yaml index 499f3e3ea151721cda67c294991c313988646efc..54ed0d4d538b7ecac295672ef5e5454b01e7f3e6 100644 --- a/config.yaml +++ b/config.yaml @@ -62,12 +62,34 @@ params: tablet: 350 desktop: 415 sections: + categories: + hero: + mobile: 400 + tablet: 800 + desktop: 900 + hero_term: + mobile: 400 + tablet: 800 + desktop: 900 diplomas: + hero: + mobile: 400 + tablet: 800 + desktop: 900 hero_single: mobile: 351 tablet: 456 desktop: 856 + home: + hero: + mobile: 400 + tablet: 800 + desktop: 900 organizations: + hero: + mobile: 400 + tablet: 800 + desktop: 900 logo: mobile: 331 tablet: 196 @@ -85,6 +107,15 @@ params: mobile: 350 tablet: 400 desktop: 900 + papers: + hero: + mobile: 400 + tablet: 800 + desktop: 900 + hero_single: + mobile: 400 + tablet: 800 + desktop: 900 persons: hero: mobile: 200 @@ -99,16 +130,32 @@ params: tablet: 100 desktop: 255 posts: + hero: + mobile: 400 + tablet: 800 + desktop: 900 + hero_single: + mobile: 400 + tablet: 800 + desktop: 900 item: mobile: 350 tablet: 450 desktop: 900 programs: + hero: + mobile: 400 + tablet: 800 + desktop: 900 image: mobile: 351x168 tablet: 456x219 desktop: 856x410 volumes: + hero: + mobile: 400 + tablet: 800 + desktop: 900 item: mobile: 327x388 tablet: 208x247 diff --git a/layouts/papers/list.html b/layouts/papers/list.html index 741e7745853824fd91f1c1f435ece82c60f2898c..b1e67d0cf9fe8b39f0421f6cf1cb170ebfcb7bdd 100644 --- a/layouts/papers/list.html +++ b/layouts/papers/list.html @@ -3,6 +3,7 @@ (dict "title" .Title "image" .Params.image + "sizes" site.Params.image_sizes.sections.papers.hero "context" . ) -}} <div class="document-content"> diff --git a/layouts/papers/single.html b/layouts/papers/single.html index d80abbd41333de0505ad15e1c664a98d7acf4c4b..5654229356e61356a1a8e9873ef572828ef2f2ab 100644 --- a/layouts/papers/single.html +++ b/layouts/papers/single.html @@ -3,6 +3,7 @@ (dict "title" .Title "image" .Params.image + "sizes" site.Params.image_sizes.sections.papers.hero_single "context" . ) -}} <div class="document-content" itemscope itemtype="https://schema.org/ScholarlyArticle"> diff --git a/layouts/partials/categories/hero-list.html b/layouts/partials/categories/hero-list.html index 0a48273d269ebe615febe47fa9fec8999ef76c53..4cb482eb1016eae37cd284843efa2518fbe0ffee 100644 --- a/layouts/partials/categories/hero-list.html +++ b/layouts/partials/categories/hero-list.html @@ -1,5 +1,6 @@ {{- partial "header/hero.html" (dict - "title" .Title - "context" . + "title" .Title + "sizes" site.Params.image_sizes.sections.categories.hero + "context" . ) -}} diff --git a/layouts/partials/categories/hero-term.html b/layouts/partials/categories/hero-term.html index 3454341cfbf2cdff26319d8e3d29f12bbfe4600f..f3573430e6a73ed3f3a50e826644a774208096aa 100644 --- a/layouts/partials/categories/hero-term.html +++ b/layouts/partials/categories/hero-term.html @@ -1,6 +1,7 @@ {{- partial "header/hero.html" - (dict - "title" .Title - "image" .Params.image - "context" . - ) -}} + (dict + "title" .Title + "image" .Params.image + "sizes" site.Params.image_sizes.sections.categories.hero_term + "context" . + ) -}} diff --git a/layouts/partials/diplomas/hero-list.html b/layouts/partials/diplomas/hero-list.html index 8e7e675c055dce99ef4dda14b248d20db258f721..b272a7170a4114164a9dc3811d72b2fffd1e0168 100644 --- a/layouts/partials/diplomas/hero-list.html +++ b/layouts/partials/diplomas/hero-list.html @@ -1,7 +1,8 @@ {{- $title := or .Params.header_text .Title -}} {{- partial "header/hero.html" - (dict - "title" $title - "image" .Params.image - "context" . - ) -}} + (dict + "title" $title + "image" .Params.image + "sizes" site.Params.image_sizes.sections.diplomas.hero + "context" . + ) -}} diff --git a/layouts/partials/home/hero.html b/layouts/partials/home/hero.html index 0a012b577b42588e45ff61e2ebd3e56934f77810..0a8f6680f38c164b9adc7f8be15858d7cba30523 100644 --- a/layouts/partials/home/hero.html +++ b/layouts/partials/home/hero.html @@ -4,5 +4,6 @@ "title" $title "image" .Params.image "breadcrumb" false + "sizes" site.Params.image_sizes.sections.home.hero "context" . )}} diff --git a/layouts/partials/organizations/hero.html b/layouts/partials/organizations/hero.html index 3454341cfbf2cdff26319d8e3d29f12bbfe4600f..5013a73d83be7f66e8f5928ebfdbe341f6e340e7 100644 --- a/layouts/partials/organizations/hero.html +++ b/layouts/partials/organizations/hero.html @@ -2,5 +2,6 @@ (dict "title" .Title "image" .Params.image + "sizes" site.Params.image_sizes.sections.organizations.hero "context" . ) -}} diff --git a/layouts/partials/pages/hero.html b/layouts/partials/pages/hero.html index 8e7e675c055dce99ef4dda14b248d20db258f721..20039accd5cbb1a950cbf90da84190a01dfbb337 100644 --- a/layouts/partials/pages/hero.html +++ b/layouts/partials/pages/hero.html @@ -3,5 +3,6 @@ (dict "title" $title "image" .Params.image + "sizes" site.Params.image_sizes.sections.pages.hero "context" . ) -}} diff --git a/layouts/partials/posts/hero-list.html b/layouts/partials/posts/hero-list.html index 3454341cfbf2cdff26319d8e3d29f12bbfe4600f..fa8d44876816599205324c8c4e9c2813d3455d01 100644 --- a/layouts/partials/posts/hero-list.html +++ b/layouts/partials/posts/hero-list.html @@ -2,5 +2,6 @@ (dict "title" .Title "image" .Params.image + "sizes" site.Params.image_sizes.sections.posts.hero "context" . ) -}} diff --git a/layouts/partials/posts/hero-single.html b/layouts/partials/posts/hero-single.html index 3454341cfbf2cdff26319d8e3d29f12bbfe4600f..c872372aaecd8f79af38325966ff5c750001b4f1 100644 --- a/layouts/partials/posts/hero-single.html +++ b/layouts/partials/posts/hero-single.html @@ -2,5 +2,6 @@ (dict "title" .Title "image" .Params.image + "sizes" site.Params.image_sizes.sections.posts.hero_single "context" . ) -}} diff --git a/layouts/partials/programs/hero.html b/layouts/partials/programs/hero.html index 8e7e675c055dce99ef4dda14b248d20db258f721..ee3cfeb3732d99ad494f13510722df71d651f50b 100644 --- a/layouts/partials/programs/hero.html +++ b/layouts/partials/programs/hero.html @@ -3,5 +3,6 @@ (dict "title" $title "image" .Params.image + "sizes" site.Params.image_sizes.sections.programs.hero "context" . ) -}} diff --git a/layouts/partials/volumes/hero.html b/layouts/partials/volumes/hero.html index 3454341cfbf2cdff26319d8e3d29f12bbfe4600f..a7648499f62496bc2d3870e5e7650040c691efde 100644 --- a/layouts/partials/volumes/hero.html +++ b/layouts/partials/volumes/hero.html @@ -2,5 +2,6 @@ (dict "title" .Title "image" .Params.image + "sizes" site.Params.image_sizes.sections.volumes.hero "context" . ) -}}