Skip to content

Commit

Permalink
Merge pull request #854 from trimble-oss/dev/coliff/use-built-in-site…
Browse files Browse the repository at this point in the history
…map-template

Use Built-in Sitemap Template
  • Loading branch information
coliff authored May 7, 2024
2 parents 4d55385 + 814183b commit 915fa6d
Show file tree
Hide file tree
Showing 20 changed files with 85 additions and 39 deletions.
3 changes: 2 additions & 1 deletion content/404.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ hideToc: true
hideDate: true
hideGitHub: true
disableScrollSpy: true
sitemap_exclude: true
sitemap:
disable: true
tags:
- search_exclude
---
Expand Down
3 changes: 2 additions & 1 deletion content/adobe-xd.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ description: "Adobe XD UI Kit"
start: true
private: true
hidden: true
sitemap_exclude: true
sitemap:
disable: true
---

## Overview
Expand Down
3 changes: 2 additions & 1 deletion content/components/mobile/introduction/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ layout: single
component: Introduction
weight: 1
tags: [mobile, hide-styles, hide-usage, hide-accessibility]
sitemap_exclude: true
sitemap:
disable: true
---

<style>
Expand Down
3 changes: 2 additions & 1 deletion content/components/mobile/map-views/_index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sitemap_exclude: true
sitemap:
disable: true
title: "Map Views"
layout: "single"
description: ""
Expand Down
3 changes: 2 additions & 1 deletion content/components/mobile/map-views/accessibility.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sitemap_exclude: true
sitemap:
disable: true
title: "Map Views"
layout: "single"
description: ""
Expand Down
3 changes: 2 additions & 1 deletion content/components/mobile/map-views/styles.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sitemap_exclude: true
sitemap:
disable: true
title: "Map Views"
layout: "single"
description: ""
Expand Down
3 changes: 2 additions & 1 deletion content/components/mobile/popovers/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ component: Popovers
images:
- "/img/mobile/headers/popovers.png"
tags: [mobile, usage, hidden]
sitemap_exclude: true
sitemap:
disable: true
---

{{< img src="/img/mobile/popovers.svg" dark="/img/mobile/popovers-dark.svg" width="961" height="260" class="w-100" alt="Popovers Example" loading="auto" >}}
Expand Down
3 changes: 2 additions & 1 deletion content/components/mobile/popovers/accessibility.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sitemap_exclude: true
sitemap:
disable: true
title: "Popovers"
layout: "single"
description: ""
Expand Down
3 changes: 2 additions & 1 deletion content/components/mobile/popovers/styles.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sitemap_exclude: true
sitemap:
disable: true
title: "Popovers"
layout: "single"
description: ""
Expand Down
3 changes: 2 additions & 1 deletion content/components/mobile/status-bars/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ component: status-bars
images:
- "/img/mobile/headers/status-bars.png"
tags: [mobile, usage]
sitemap_exclude: true
sitemap:
disable: true
private: true
draft: true
---
Expand Down
3 changes: 2 additions & 1 deletion content/components/mobile/status-bars/accessibility.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sitemap_exclude: true
sitemap:
disable: true
title: "Status Bars"
layout: "single"
description: "The status bar is the operating system tray that goes across the top of the device screen."
Expand Down
3 changes: 2 additions & 1 deletion content/components/mobile/status-bars/styles.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sitemap_exclude: true
sitemap:
disable: true
title: "Status Bars"
layout: "single"
description: "The status bar is the operating system tray that goes across the top of the device screen."
Expand Down
3 changes: 2 additions & 1 deletion content/cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ private: true
hidden: true
hideToc: true
disableScrollSpy: true
sitemap_exclude: true
sitemap:
disable: true
tags:
- search_exclude
---
Expand Down
3 changes: 2 additions & 1 deletion content/desktop/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ layout: components
disableScrollSpy: true
draft: true
private: true
sitemap_exclude: true
sitemap:
disable: true
---
3 changes: 2 additions & 1 deletion content/in-field/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: "In-Field"
description: ""
layout: redirect
disableScrollSpy: true
sitemap_exclude: true
sitemap:
disable: true
redirect: "/components/in-field/"
---
3 changes: 2 additions & 1 deletion content/stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ url: "/stats/"
start: true
hideDate: true
hideToc: true
sitemap_exclude: true
sitemap:
disable: true
tags:
- search_exclude
---
Expand Down
8 changes: 0 additions & 8 deletions layouts/sitemap.xml

This file was deleted.

38 changes: 38 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[build]
command = "hugo"
publish = "build"

[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "upgrade-insecure-requests"
Permissions-Policy = "camera=(), microphone=(), midi=()"
Referrer-Policy = "no-referrer-when-downgrade"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "SAMEORIGIN"
X-XSS-Protection = "0"

[[headers]]
for = "/*.css"
[headers.values]
Cache-Control = "public, s-max-age=64800"

[[headers]]
for = "/*.ico"
[headers.values]
Cache-Control = "public, max-age=1604800, immutable"

[[headers]]
for = "/fonts/*"
[headers.values]
Cache-Control = "public, max-age=604800, immutable"

[[headers]]
for = "/img/*"
[headers.values]
Cache-Control = "public, max-age=1604800, immutable"

[[headers]]
for = "/js/*"
[headers.values]
Cache-Control = "public, max-age=1604800, immutable"
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@
"devDependencies": {
"@fullhuman/postcss-purgecss": "6.0.0",
"@trimble-oss/modus-bootstrap": "2.0.0-alpha24",
"@trimble-oss/modus-icons": "1.13.0",
"@trimble-oss/modus-icons": "1.13.1",
"autoprefixer": "10.4.19",
"bootstrap-print-css": "1.0.1",
"cross-env": "7.0.3",
"htmlhint": "1.1.4",
"hugo-bin": "0.122.3",
"hugo-bin": "0.122.7",
"list.js": "2.3.1",
"npm-run-all": "4.1.5",
"popover-css-inspector": "1.0.0-beta14",
"postcss": "8.4.38",
"postcss-cli": "11.0.0",
"prettier": "3.2.5",
"s3-deploy": "1.4.0",
"stylelint": "16.4.0",
"stylelint": "16.5.0",
"stylelint-config-standard-scss": "13.1.0",
"textlint": "14.0.4",
"textlint-rule-common-misspellings": "1.0.1",
Expand Down

0 comments on commit 915fa6d

Please sign in to comment.