diff --git a/packages/marko-web-theme-monorail/components/marko.json b/packages/marko-web-theme-monorail/components/marko.json index 7cf95352b..dd03b362c 100644 --- a/packages/marko-web-theme-monorail/components/marko.json +++ b/packages/marko-web-theme-monorail/components/marko.json @@ -27,15 +27,9 @@ "": { "template": "./pagination-controls.marko" }, - "": { - "template": "./site-footer.marko" - }, "": { "template": "./site-header.marko" }, - "": { - "template": "./site-menu/index.marko" - }, "": { "template": "./site-newsletter-menu.marko" }, diff --git a/packages/marko-web-theme-monorail/components/site-footer.marko b/packages/marko-web-theme-monorail/components/site-footer.marko deleted file mode 100644 index 4ddc11f12..000000000 --- a/packages/marko-web-theme-monorail/components/site-footer.marko +++ /dev/null @@ -1,130 +0,0 @@ -import getNavItems from "@parameter1/base-cms-marko-web-theme-monorail/components/site-navbar/utils/get-nav-items"; -import defaultValue from "@parameter1/base-cms-marko-core/utils/default-value"; -import { getAsObject } from "@parameter1/base-cms-object-path"; -import { asObject } from "@parameter1/base-cms-utils"; - -$ const { config, site, i18n } = out.global; -$ const newsletterSignupConfigName = defaultValue(input.newsletterSignupConfigName, "signupFooter"); -$ const newsletterBlockProps = getAsObject(input, "newsletterBlockProps"); -$ const newsletterConfig = site.getAsObject(`newsletter.${newsletterSignupConfigName}`); -$ const blockName = input.blockName || "site-footer"; -$ const tagline = site.get("tagline"); -$ const useIdxNewsletterSignup = defaultValue(input.useIdxNewsletterSignup, true); - - - - - - - - - - - ${tagline} - - -
- - - - - - - - - - - - - -
- $ const navBlockName = "site-footer-nav"; - - $ const topics = site.getAsArray("navigation.footer.topics"); - - - - - - $ const more = site.getAsArray("navigation.footer.more"); - - - - -
- -
-
- -
-
- - - $ const corporateSrc = site.get("logos.corporate.src"); - $ const corporateSrcset = site.getAsArray("logos.corporate.srcset"); - $ const corporateHref = site.get("logos.corporate.href"); - $ const corporateAlt = site.get("logos.corporate.alt") || site.get("company"); - - - -
diff --git a/packages/marko-web-theme-monorail/components/site-footer/index.marko b/packages/marko-web-theme-monorail/components/site-footer/index.marko index 24f4dcd2b..4ddc11f12 100644 --- a/packages/marko-web-theme-monorail/components/site-footer/index.marko +++ b/packages/marko-web-theme-monorail/components/site-footer/index.marko @@ -1,9 +1,15 @@ +import getNavItems from "@parameter1/base-cms-marko-web-theme-monorail/components/site-navbar/utils/get-nav-items"; import defaultValue from "@parameter1/base-cms-marko-core/utils/default-value"; +import { getAsObject } from "@parameter1/base-cms-object-path"; +import { asObject } from "@parameter1/base-cms-utils"; -$ const { config, site } = out.global; - +$ const { config, site, i18n } = out.global; +$ const newsletterSignupConfigName = defaultValue(input.newsletterSignupConfigName, "signupFooter"); +$ const newsletterBlockProps = getAsObject(input, "newsletterBlockProps"); +$ const newsletterConfig = site.getAsObject(`newsletter.${newsletterSignupConfigName}`); $ const blockName = input.blockName || "site-footer"; -$ const showCopyright = defaultValue(input.showCopyright, true) +$ const tagline = site.get("tagline"); +$ const useIdxNewsletterSignup = defaultValue(input.useIdxNewsletterSignup, true); - - - - - - - - - - - - ${site.get("customCopyright")} - + + + + + + + + + ${tagline} - - + + + + + + + + + + + + + +
+ $ const navBlockName = "site-footer-nav"; + + $ const topics = site.getAsArray("navigation.footer.topics"); + + + + + + $ const more = site.getAsArray("navigation.footer.more"); + + + + +
+ +
+ + +
+
+ + + $ const corporateSrc = site.get("logos.corporate.src"); + $ const corporateSrcset = site.getAsArray("logos.corporate.srcset"); + $ const corporateHref = site.get("logos.corporate.href"); + $ const corporateAlt = site.get("logos.corporate.alt") || site.get("company"); + +