From 2ade433c70fbffeef5099b7d20998bdeb5447414 Mon Sep 17 00:00:00 2001 From: Brandon Krigbaum Date: Tue, 1 Jun 2021 08:39:39 -0500 Subject: [PATCH 1/4] Update page title --- packages/marko-web-html-sitemap/templates/date-list.marko | 2 +- packages/marko-web-html-sitemap/templates/day.marko | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/marko-web-html-sitemap/templates/date-list.marko b/packages/marko-web-html-sitemap/templates/date-list.marko index d23e7d140..87af26b93 100644 --- a/packages/marko-web-html-sitemap/templates/date-list.marko +++ b/packages/marko-web-html-sitemap/templates/date-list.marko @@ -11,7 +11,7 @@ $ const { $ const type = "sitemap"; $ const pageNode = { - title: "Sitemap", + title: "Site Map", }; $ switch (displayType) { case "day": diff --git a/packages/marko-web-html-sitemap/templates/day.marko b/packages/marko-web-html-sitemap/templates/day.marko index de5aba430..df0c1e3de 100644 --- a/packages/marko-web-html-sitemap/templates/day.marko +++ b/packages/marko-web-html-sitemap/templates/day.marko @@ -14,7 +14,7 @@ $ const perPage = 1000; $ const type = "sitemap"; $ const date = `${month} ${day}, ${year}`; $ const pageNode = { - title: "Sitemap", + title: "Site Map", description: `All ${config.siteName()} stories published on ${date}`, }; From 7d459caa87a2042fb429348be371d2a441d760fc Mon Sep 17 00:00:00 2001 From: Brandon Krigbaum Date: Tue, 1 Jun 2021 08:39:47 -0500 Subject: [PATCH 2/4] Update route --- packages/marko-web-html-sitemap/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/marko-web-html-sitemap/routes/index.js b/packages/marko-web-html-sitemap/routes/index.js index 4db3b4609..e25571011 100644 --- a/packages/marko-web-html-sitemap/routes/index.js +++ b/packages/marko-web-html-sitemap/routes/index.js @@ -32,7 +32,7 @@ const ALL_PUBLISHED_CONTENT_DATES = gql` } `; -module.exports = (app, { mountPoint } = { mountPoint: '/html-sitemap' }) => { +module.exports = (app, { mountPoint } = { mountPoint: '/site-map' }) => { app.get(`${mountPoint}/:year(\\d{4})/:month(\\d{2})/:day(\\d{2})`, asyncRoute(async (req, res) => { const { year, month, day } = req.params; From ee0823086f90ca7aade24dc3e362e2bc652f2516 Mon Sep 17 00:00:00 2001 From: Brandon Krigbaum Date: Tue, 1 Jun 2021 08:40:17 -0500 Subject: [PATCH 3/4] Fix linting errors --- packages/marko-web-html-sitemap/scss/index.scss | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/marko-web-html-sitemap/scss/index.scss b/packages/marko-web-html-sitemap/scss/index.scss index 1bde6643a..384898d4b 100644 --- a/packages/marko-web-html-sitemap/scss/index.scss +++ b/packages/marko-web-html-sitemap/scss/index.scss @@ -22,19 +22,21 @@ $primary: #000 !default; } .row { &__dates { - overflow:hidden; padding-right: .5rem; padding-left: .5rem; margin-bottom: 1.5rem; + overflow: hidden; } } .col { &__date { - border-bottom: 1px solid #ccc; - margin-bottom:-1px; - margin-top:1px; - text-align: center; padding: .75rem .5rem; + margin-top: 1px; + margin-bottom: -1px; + font-size: 1.1rem; + text-align: center; + border-bottom: 1px solid #ccc; + &--year, &--day { @include media-breakpoint-down(sm) { From 194b5116ecb474d7dc0157f07648f24f56b2e2f7 Mon Sep 17 00:00:00 2001 From: Brandon Krigbaum Date: Tue, 1 Jun 2021 08:40:32 -0500 Subject: [PATCH 4/4] Adjust font sizes and spacing --- packages/marko-web-html-sitemap/scss/index.scss | 10 +++++++--- packages/marko-web-html-sitemap/templates/day.marko | 1 - 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/marko-web-html-sitemap/scss/index.scss b/packages/marko-web-html-sitemap/scss/index.scss index 384898d4b..3afc71dd1 100644 --- a/packages/marko-web-html-sitemap/scss/index.scss +++ b/packages/marko-web-html-sitemap/scss/index.scss @@ -1,8 +1,8 @@ $primary: #000 !default; .sitemap { .breadcrumb { + font-size: 1.5rem; background: transparent; - } .page-wrapper { &__title { @@ -16,10 +16,14 @@ $primary: #000 !default; } } .node-list { - &--published-content-list { - margin-bottom: 1.5rem; + &__node { + font-size: 1.1rem; } } + .pagination-controls { + padding-top: 1.2rem; + margin-bottom: 1.5rem; + } .row { &__dates { padding-right: .5rem; diff --git a/packages/marko-web-html-sitemap/templates/day.marko b/packages/marko-web-html-sitemap/templates/day.marko index df0c1e3de..873bfe110 100644 --- a/packages/marko-web-html-sitemap/templates/day.marko +++ b/packages/marko-web-html-sitemap/templates/day.marko @@ -40,7 +40,6 @@ $ const pageNode = { <@nodes nodes=nodes>