diff options
| author | alex <alex@pdp7.net> | 2026-09-18 16:28:51 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-09-18 16:28:51 +0200 |
| commit | ad7087f8be70ede67e357c5ca98980957d189b54 (patch) | |
| tree | 4aa807c97abc0474c66d79da3426cace600c4e95 /blog | |
| parent | c79efb3411895cc8c489c4543e2da30c42f4080c (diff) | |
Enable editing of interesting-projects
Diffstat (limited to 'blog')
| -rwxr-xr-x | blog/footers.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/blog/footers.py b/blog/footers.py index 137bafd6..4ec7f50d 100755 --- a/blog/footers.py +++ b/blog/footers.py @@ -33,12 +33,15 @@ for gmi in pathlib.Path.cwd().glob("**/*.gmi"): footer.append(CONTACT[language]) - edit_url = None + content_source = None if relative_gmi in content_gmi_files: - edit_url = "https://github.com/alexpdp7/alexpdp7/edit/master/blog/content/" + relative_gmi + content_source = "blog/content/" + relative_gmi - if edit_url: - footer.append(f"=> {edit_url} {EDIT_IN_GITHUB[language]}") + if relative_gmi == "notes/interesting-projects.gmi": + content_source = "interesting-projects/interesting-projects.gmi" + + if content_source: + footer.append(f"=> https://github.com/alexpdp7/alexpdp7/edit/master/{content_source} {EDIT_IN_GITHUB[language]}") gmi_content = gmi.read_text() assert gmi_content.endswith("\n"), f"{gmi} has no trailing new line" |
