diff --git a/public/css/sitemap-xml.css b/public/css/sitemap-xml.css new file mode 100644 index 0000000..188f3ce --- /dev/null +++ b/public/css/sitemap-xml.css @@ -0,0 +1,37 @@ +body { +font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; +font-size: 16px; +margin: 30px; +background: #f9f9f9; +color: #222; +} +table { +border-collapse: collapse; +width: 100%; +max-width: 900px; +margin: auto; +background: white; +box-shadow: 0 0 12px rgba(0,0,0,0.1); +} +th, td { +border: 1px solid #ddd; +padding: 12px 15px; +text-align: left; +} +th { +background-color: #007acc; +color: white; +font-weight: 600; +} +a { +color: #007acc; +text-decoration: none; +} +a:hover { +text-decoration: underline; +} +caption { +font-size: 1.5em; +margin-bottom: 15px; +font-weight: 700; +} diff --git a/public/css/sitemap.xsl b/public/css/sitemap.xsl new file mode 100644 index 0000000..c2955bf --- /dev/null +++ b/public/css/sitemap.xsl @@ -0,0 +1,45 @@ + + + + + + + + + Sitemap + + + + + + + + + + + + + + + + + + + + + + + +
Site Map
URLLast ModifiedChange FrequencyPriority
+ + + +
+ + +
+ +
diff --git a/src/middleware/errorHandler.js b/src/middleware/errorHandler.js index 6de8015..0f79951 100644 --- a/src/middleware/errorHandler.js +++ b/src/middleware/errorHandler.js @@ -1,5 +1,4 @@ const path = require("path"); -const getBaseContext = require("../utils/baseContext"); module.exports = async (err, req, res, next) => { const statusCode = err.statusCode ?? 500; diff --git a/src/views/pages/sitemap-xml.handlebars b/src/views/pages/sitemap-xml.handlebars index ef377fe..1af270a 100644 --- a/src/views/pages/sitemap-xml.handlebars +++ b/src/views/pages/sitemap-xml.handlebars @@ -1,4 +1,5 @@ + {{#each urls}}