diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-06-28 01:35:14 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-06-28 01:57:08 +0900 |
| commit | b9b6e3db160853d0d52bd7df6215c4fa38693184 (patch) | |
| tree | 0e87fe0350b1302a59a6ae702fe6cfe78029ed38 /generate-sitemap.py | |
| parent | 57a7aa4410b85423faecfc45ee2c00f1d5c12d3f (diff) | |
static: remove unused pages
There are more potentially unused pages, but these are unlikely to
become relevant or reusable in the near future, so remove them.
Diffstat (limited to 'generate-sitemap.py')
| -rw-r--r-- | generate-sitemap.py | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/generate-sitemap.py b/generate-sitemap.py index 60157658..1f5c9fe7 100644 --- a/generate-sitemap.py +++ b/generate-sitemap.py @@ -2,27 +2,16 @@ from datetime import datetime, timezone from os.path import getmtime from pathlib import Path -base = "https://grapheneos.org" +base = "https://hakurei.app" pages = [ ["/", 0.5], - ["/.well-known/security.txt", 0.0], ["/LICENSE.txt", 0.0], - ["/articles/", 0.5], - ["/articles/attestation-compatibility-guide", 0.5], - ["/articles/grapheneos-servers", 0.1], - ["/articles/positon-location-service", 0.5], - ["/articles/server-traffic-shaping", 0.5], - ["/articles/sitewide-advertising-industry-opt-out", 0.5], ["/build", 0.5], ["/camera-privacy-policy", 0.0], ["/contact", 0.5], - ["/donate", 0.5], ["/faq", 1.0], ["/features", 1.0], - ["/history/", 0.3], - ["/history/copperheados", 0.1], - ["/history/legacy-changelog", 0.1], ["/hiring", 0.2], ["/humans.txt", 0.0], ["/pdfviewer-privacy-policy", 0.0], @@ -38,12 +27,13 @@ entries = [] for page in pages: path = page[0] + if path[-1] != '/' and "." not in path: + path += ".html" + loc = base + path filepath = "static-production" + path if path[-1] == '/': filepath += "index.html" - elif "." not in path: - filepath += ".html" mtime = getmtime(filepath) if mtime > base_mtime: |
