diff --git a/assets/sass/_theme/sections/organizations.sass b/assets/sass/_theme/sections/organizations.sass index 0c413b93a4bc7e5512a9275ad8003646440150ea..b1629855f89537c0e77c93265d9286d592649b45 100644 --- a/assets/sass/_theme/sections/organizations.sass +++ b/assets/sass/_theme/sections/organizations.sass @@ -34,7 +34,15 @@ .organizations margin-top: $spacing2 + .organizations__page + .lead + font-family: $lead-sidebar-font-family + font-weight: $lead-sidebar-weight + line-height: $lead-sidebar-line-height + margin-bottom: $spacing1 + @include media-breakpoint-up(desktop) + font-size: $lead-sidebar-size-desktop .document-content .organization-meta .logo diff --git a/layouts/organizations/single.html b/layouts/organizations/single.html index e2d9ef781b07e0ce21ff0f42a5face0fc4a3ab15..5c3a2803bbe0a5a41ed30098647adbff8ed85ab7 100644 --- a/layouts/organizations/single.html +++ b/layouts/organizations/single.html @@ -11,7 +11,18 @@ }} <div class="container"> - {{ partial "organizations/content.html" . }} + <div itemprop="articleBody" class="rich-text"> + {{ partial "pages/chapo.html" (dict + "context" . + ) }} + + {{ if (partial "GetTextFromHTML" .Content) }} + {{ partial "PrepareHTML" ( + partial "H2AddId" .Content + ) }} + {{ end }} + </div> + <div class="organization-meta"> {{ partial "organizations/logo.html" . }} {{ partial "organizations/contacts.html" . }} diff --git a/layouts/partials/footer/debug.html b/layouts/partials/footer/debug.html index a6ab8eca0afbd7e35c548b3fa329089b0c8e205f..e53839f3ae9e1dbe3434899ddee8e68fa82fa513 100644 --- a/layouts/partials/footer/debug.html +++ b/layouts/partials/footer/debug.html @@ -186,7 +186,6 @@ const dimensionHeight = img.naturalHeight * window.devicePixelRatio; console.log(` ------------------------- - Device Pixel Ratio: ${window.devicePixelRatio} Rendered size: ${img.width}x${img.height} Intrinsic size: ${dimensionWidth}x${dimensionHeight} Device Pixel Ratio: ${window.devicePixelRatio} diff --git a/layouts/partials/organizations/chapo.html b/layouts/partials/organizations/chapo.html new file mode 100644 index 0000000000000000000000000000000000000000..4117ac68595d2f5ffaf25d0f39e028072afdbaab --- /dev/null +++ b/layouts/partials/organizations/chapo.html @@ -0,0 +1 @@ +{{- partial "commons/chapo.html" . -}}