Commit feec84ba authored by Marius DAVID's avatar Marius DAVID
Browse files

Added link to newest edition.

parent 18fc1d97
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -13,6 +13,14 @@ def process_edition(year, community):
		.replace("{YEAR}", year) \
		.replace("{COMMUNITY}", community)

	for known_year in ["2025", "2024"]:
		if known_year == year:
			index = index.replace("{" + known_year + "ONLYCOMMENTSTART}", "<!--")
			index = index.replace("{" + known_year + "ONLYCOMMENTEND}", "-->")
		else:
			index = index.replace("{" + known_year + "ONLYCOMMENTSTART}", "")
			index = index.replace("{" + known_year + "ONLYCOMMENTEND}", "")

	with open(os.path.join(sys.argv[2], "index.html"), "w") as f:
		f.write(index)

+3 −3
Original line number Diff line number Diff line
@@ -49,13 +49,13 @@
	<body>
		<div id="wrapper" class="listHidden">
			<header class="fixed-top">
				<!--<aside class="container-fluid alert-primary collapse" id="headerNotice">
				{2025ONLYCOMMENTSTART}<aside class="container-fluid alert-primary collapse" id="headerNotice">
					<div class="d-flex w-100 py-2 align-items-center">
						<i class="bi bi-info-circle-fill fs-5"></i>
						<p class="mb-0 flex-grow-1 px-2">The Atlas has been updated. Few quality of life updates, and The Final Clean canvas is now <a class="alert-link" href="#/T">viewable</a>.</p>
						<p class="mb-0 flex-grow-1 px-2">This is the {YEAR} atlas. The 2025 atlas is available <a href="https://atlas2025.mariusdavid.fr">there</a>.</p>
						<a class="fs-5" data-bs-toggle="collapse" href="#headerNotice" role="button" aria-expanded="false" aria-controls="headerNotice"><i class="bi bi-x-lg"></i></a>
					</div>
				</aside> -->
				</aside>{2025ONLYCOMMENTEND}
				<nav id="main-navbar" class="navbar navbar-expand-lg bg-body border-bottom">
					<div class="container-fluid">
						<a class="navbar-brand text-body d-flex align-items-center" href="./">