Skip to content

Commit a41a9aa

Browse files
committed
chore(cutover): retire v2 scaffolding (templates + plugin + config)
The v2 design is now the canonical design served at root URLs. Delete base-v2.html, all v2_*.html templates, the v2_router Pelican plugin, and the V2_*_SAVE_AS/URL + PLUGIN_PATHS/PLUGINS entries in pelicanconf.py. /v2home/, /v2writings/, /v2theforge/, /v2/<slug>/ and /v2/pages/<slug>/ no longer exist. Verification: rebuilt output/ has no output/v2* paths; all canonical URLs (/, /writings/, /<slug>/, /pages/<slug>/) intact.
1 parent 8108b53 commit a41a9aa

10 files changed

Lines changed: 1 addition & 428 deletions

pelicanconf.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,9 @@
4545
PAGE_SAVE_AS = "pages/{slug}/index.html"
4646
ARTICLE_URL = "{slug}/"
4747
ARTICLE_SAVE_AS = "{slug}/index.html"
48-
DIRECT_TEMPLATES = ("index", "archives", "v2_index", "v2_archives", "v2_theforge")
48+
DIRECT_TEMPLATES = ("index", "archives")
4949
ARCHIVES_SAVE_AS = "writings/index.html"
5050

51-
# v2 parallel deployment — same article/page data, rendered through v2_*.html templates
52-
# at /v2home/, /v2writings/, /v2theforge/, plus per-article /v2/<slug>/ via the
53-
# v2_router plugin. Old site remains unchanged.
54-
V2_INDEX_SAVE_AS = "v2home/index.html"
55-
V2_INDEX_URL = "v2home/"
56-
V2_ARCHIVES_SAVE_AS = "v2writings/index.html"
57-
V2_ARCHIVES_URL = "v2writings/"
58-
V2_THEFORGE_SAVE_AS = "v2theforge/index.html"
59-
V2_THEFORGE_URL = "v2theforge/"
60-
61-
PLUGIN_PATHS = ["plugins"]
62-
PLUGINS = ["v2_router"]
63-
6451
TAG_SAVE_AS = ""
6552
CATEGORY_SAVE_AS = ""
6653
AUTHOR_SAVE_AS = ""

plugins/v2_router.py

Lines changed: 0 additions & 68 deletions
This file was deleted.

theme/templates/base-v2.html

Lines changed: 0 additions & 69 deletions
This file was deleted.

theme/templates/v2_archives.html

Lines changed: 0 additions & 57 deletions
This file was deleted.

theme/templates/v2_article.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

theme/templates/v2_index.html

Lines changed: 0 additions & 82 deletions
This file was deleted.

theme/templates/v2_inference_economics.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

theme/templates/v2_longform_article.html

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)