diff --git a/_headers b/_headers deleted file mode 120000 index c73f6b0..0000000 --- a/_headers +++ /dev/null @@ -1 +0,0 @@ -./static/_headers \ No newline at end of file diff --git a/_redirects b/_redirects deleted file mode 120000 index 12b15c0..0000000 --- a/_redirects +++ /dev/null @@ -1 +0,0 @@ -./static/_redirects \ No newline at end of file diff --git a/content/photography/2017-06-21-old-quebec.md b/content/photography/2017-06-21-old-quebec.md deleted file mode 100644 index 11fe3be..0000000 --- a/content/photography/2017-06-21-old-quebec.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Old Quebec -date: 2017-06-21 -extra: - cover_image: /photos/2017-06-21-old-quebec.preview.jpeg ---- - - diff --git a/content/photography/2017-06-21-stormy-quebec-street.md b/content/photography/2017-06-21-stormy-quebec-street.md deleted file mode 100644 index f4690ee..0000000 --- a/content/photography/2017-06-21-stormy-quebec-street.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Stormy Street in Quebec -date: 2017-06-21 -extra: - cover_image: /photos/2017-06-21-stormy-quebec-street.preview.jpeg ---- - - diff --git a/content/photography/2017-06-22-montmorency-falls.md b/content/photography/2017-06-22-montmorency-falls.md deleted file mode 100644 index 9369336..0000000 --- a/content/photography/2017-06-22-montmorency-falls.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Montmorency Falls -date: 2017-06-22 -extra: - cover_image: /photos/2017-06-22-montmorency-falls.preview.jpeg ---- - - diff --git a/content/photography/2017-08-04-rocky-shore-halifax.md b/content/photography/2017-08-04-rocky-shore-halifax.md deleted file mode 100644 index e147efd..0000000 --- a/content/photography/2017-08-04-rocky-shore-halifax.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Rocky Shore -date: 2017-08-04 -extra: - cover_image: /photos/2017-08-04-rocky-shore-halifax.preview.jpeg ---- - - diff --git a/content/photography/2019-08-04-halifax-port.md b/content/photography/2019-08-04-halifax-port.md deleted file mode 100644 index 796cd0d..0000000 --- a/content/photography/2019-08-04-halifax-port.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Halifax Port -date: 2019-08-04 -extra: - cover_image: /photos/2019-08-04-halifax-port.preview.jpeg ---- - - - -*Shot at [PSA International](https://www.globalpsa.com/)'s Halifax port.* diff --git a/content/photography/2019-08-09-jacobs-ladder.md b/content/photography/2019-08-09-jacobs-ladder.md deleted file mode 100644 index df2b668..0000000 --- a/content/photography/2019-08-09-jacobs-ladder.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Jacob's Ladder -date: 2019-08-09 -extra: - cover_image: /photos/2019-08-09-jacobs-ladder.preview.jpeg ---- - - - -*Shot at Jacob's Ladder, a stairway in Victoria Park, Truro, Nova Scotia.* diff --git a/content/photography/2020-07-19-my-desk.md b/content/photography/2020-07-19-my-desk.md deleted file mode 100644 index a9e5c56..0000000 --- a/content/photography/2020-07-19-my-desk.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: My Desk -date: 2020-07-19 -extra: - cover_image: /photos/2020-07-19-my-desk.preview.png ---- - - diff --git a/content/photography/2020-07-23-two-cars.md b/content/photography/2020-07-23-two-cars.md deleted file mode 100644 index 3e026ae..0000000 --- a/content/photography/2020-07-23-two-cars.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Two Cars -date: 2020-07-23 -extra: - cover_image: /photos/2020-07-23-two-cars.preview.png ---- - - - -*Two Cars* was shot from a few hundred feet in the air on a DJI Mavic Mini. \ No newline at end of file diff --git a/content/photography/2020-07-24-above-the-thames.md b/content/photography/2020-07-24-above-the-thames.md deleted file mode 100644 index 4cbea9a..0000000 --- a/content/photography/2020-07-24-above-the-thames.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Above the Thames -date: 2020-07-24 -extra: - cover_image: /photos/2020-07-24-above-the-thames.preview.jpg ---- - - - -Looking down at the Thames River in the heart of London, Ontario. diff --git a/content/photography/2022-01-18-snow-day-in-space.md b/content/photography/2022-01-18-snow-day-in-space.md deleted file mode 100644 index 0d21be3..0000000 --- a/content/photography/2022-01-18-snow-day-in-space.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Snow Day in Space -date: 2022-01-18 -extra: - cover_image: /photos/2022-01-18-snow-day-in-space.preview.jpg ---- - - diff --git a/content/photography/2022-03-06-icy-shore.md b/content/photography/2022-03-06-icy-shore.md deleted file mode 100644 index 8dea18d..0000000 --- a/content/photography/2022-03-06-icy-shore.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: Icy Shore -date: 2022-03-06 -extra: - cover_image: /photos/2022-03-06-icy-shore.preview.jpg ---- - - - -Shot at Sixteen Mile Creek in Oakville, Ontario. \ No newline at end of file diff --git a/content/photography/_index.md b/content/photography/_index.md deleted file mode 100644 index 50ff35d..0000000 --- a/content/photography/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Photography -sort_by: date -template: "photo-timeline.html" ---- - diff --git a/content/privacy/_index.md b/content/privacy/_index.md deleted file mode 100644 index 8c01cf8..0000000 --- a/content/privacy/_index.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Privacy Policies ---- - -The following documents define the privacy policies for various things I've made: - -- Applications - - [Slice](/privacy/applications/slice) (WearOS watch face) diff --git a/content/privacy/applications/slice.md b/content/privacy/applications/slice.md deleted file mode 100644 index a9412f1..0000000 --- a/content/privacy/applications/slice.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: Slice Privacy Policy ---- - -The "Slice" watch face for WearOS does not intentionally collect any data. It does not connect to the internet, and it does not use any third-party services. diff --git a/scripts/find_external_assets.py b/scripts/find_external_assets.py deleted file mode 100644 index 84401b2..0000000 --- a/scripts/find_external_assets.py +++ /dev/null @@ -1,37 +0,0 @@ -import re -from pathlib import Path - -REPO_ROOT = Path(__file__).parent.parent - -# Find all MD and HTML files -md_files = list(REPO_ROOT.rglob("*.md")) -html_files = list(REPO_ROOT.rglob("*.html")) - -# Ignore any files in the `public` directory -md_files = [f for f in md_files if "public" not in f.parts] -html_files = [f for f in html_files if "public" not in f.parts] - -# Result storage -external_assets = set() - -# Find Markdown images -for file in md_files: - body = file.read_text() - for match in re.finditer(r"!\[.*?\]\((.*?)\)", body): - link = match.group(1) - if link.startswith("http"): - external_assets.add((file, link)) - -# Search HTML -for file in html_files: - body = file.read_text() - for match in re.finditer(r'src="(.*?)"', body): - link = match.group(1) - if link.startswith("http"): - external_assets.add((file, link)) - -# Print all external assets -for file_path, link in external_assets: - # Strip the prefix off the file path - file_path = file_path.relative_to(REPO_ROOT) - print(f"{file_path}:\t{link}") \ No newline at end of file diff --git a/scripts/fix_md_file_aliases.py b/scripts/fix_md_file_aliases.py deleted file mode 100644 index b08eea1..0000000 --- a/scripts/fix_md_file_aliases.py +++ /dev/null @@ -1,66 +0,0 @@ -import argparse -import sys -import re -import frontmatter -import yaml -from pathlib import Path - -BLOG_POST_RE = re.compile(r"^\d{4}-\d+-\d+-(.*)\.md$") - - -def main() -> int: - # Handle program arguments - ap = argparse.ArgumentParser( - description="Fixes the `aliases` field in the front matter of markdown files" - ) - ap.add_argument( - "--root", - type=Path, - default=Path(__file__).parent.parent / "content" / "blog", - help="The root directory to search for markdown files", - ) - args = ap.parse_args() - - # Find all markdown files - md_files = list(args.root.glob("**/*.md")) - print(f"Found {len(md_files)} markdown files") - - # Handle each file - for file in md_files: - print(f"Processing: {file}") - - # Determine what the alias path should be - title_matches = BLOG_POST_RE.match(file.name) - if not title_matches: - print("Skipping file, not a blog post") - continue - - title = title_matches.group(1) - correct_alias = f"/blog/{title.lower()}" - print("Correct alias:", correct_alias) - - # Load and parse the frontmatter - post = frontmatter.load(file) - - # Get the list of aliases - aliases = post.metadata.get("aliases", []) - - # If the alias is already correct, skip it - if correct_alias in aliases: - print("Found correct alias") - continue - - # Otherwise, add the correct alias - aliases.append(correct_alias) - - # Write out the new frontmatter - post.metadata["aliases"] = aliases - file_contents = frontmatter.dumps(post, sort_keys=False) - file_contents += "\n" - file.write_text(file_contents) - - return 0 - - -if __name__ == "__main__": - sys.exit(main()) diff --git a/src/404.html b/src/404.html new file mode 100644 index 0000000..969c978 --- /dev/null +++ b/src/404.html @@ -0,0 +1,10 @@ +--- +layout: default +title: Not Found +permalink: /404.html +--- + +
+ The page you were looking for was not found. +
\ No newline at end of file diff --git a/src/_layouts/default.html b/src/_layouts/default.html index 77bd4f4..f58d366 100644 --- a/src/_layouts/default.html +++ b/src/_layouts/default.html @@ -15,7 +15,43 @@