From 29b2d3a3da9d1ed8e2a4dcf9382a9ace59395e77 Mon Sep 17 00:00:00 2001 From: Ibrahim Cesar Date: Tue, 11 Feb 2025 16:49:44 -0300 Subject: [PATCH 1/4] fix: multilanguage support, added Content-Security-Policy --- config.toml | 1 - layouts/partials/custom-comments.html | 2 +- layouts/partials/custom-header.html | 9 +++++++- layouts/partials/menu.html | 4 ++-- .../layouts/partials/menu-footer.html | 2 +- themes/learn/layouts/partials/footer.html | 22 +++++++++---------- themes/learn/layouts/partials/menu.html | 4 ++-- themes/learn/layouts/partials/search.html | 2 +- 8 files changed, 26 insertions(+), 20 deletions(-) diff --git a/config.toml b/config.toml index be4415603..0c672f6e2 100644 --- a/config.toml +++ b/config.toml @@ -37,7 +37,6 @@ base_github_url = "https://github.com/awslabs/aws-well-architected-labs/tree/mas base_raw_github_url = "https://raw.githubusercontent.com/awslabs/aws-well-architected-labs/master/" #{{% siteparam "base_github_url" %}} - [minify] disableCSS = false disableHTML = false diff --git a/layouts/partials/custom-comments.html b/layouts/partials/custom-comments.html index 91066ecc6..d12e3e1ff 100644 --- a/layouts/partials/custom-comments.html +++ b/layouts/partials/custom-comments.html @@ -4,6 +4,6 @@
  • Privacy
  • |
  • Site Terms |
  • -
  • © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • +
  • © , Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • diff --git a/layouts/partials/custom-header.html b/layouts/partials/custom-header.html index 7fa5fbb3e..9f6470bf7 100644 --- a/layouts/partials/custom-header.html +++ b/layouts/partials/custom-header.html @@ -6,4 +6,11 @@ - + + + + + diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 7b9131ef4..7375ba91e 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -38,11 +38,11 @@

    {{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}

    {{end}} - {{ if or .Site.IsMultiLingual $showvisitedlinks }} + {{ if or hugo.IsMultilingual $showvisitedlinks }}

    {{end}} - {{ if or .Site.IsMultiLingual $showvisitedlinks }} + {{ if or hugo.IsMultiLingual $showvisitedlinks }}