diff --git a/LICENSE_GPL.md b/LICENSE_GPL.md index 496acdb..264dbd1 100644 --- a/LICENSE_GPL.md +++ b/LICENSE_GPL.md @@ -217,23 +217,23 @@ produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: -- a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. -- b) The work must carry prominent notices stating that it is - released under this License and any conditions added under - section 7. This requirement modifies the requirement in section 4 - to "keep intact all notices". -- c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. -- d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. +- a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. +- b) The work must carry prominent notices stating that it is + released under this License and any conditions added under + section 7. This requirement modifies the requirement in section 4 + to "keep intact all notices". +- c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. +- d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, @@ -252,42 +252,42 @@ sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: -- a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. -- b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the Corresponding - Source from a network server at no charge. -- c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. -- d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. -- e) Convey the object code using peer-to-peer transmission, - provided you inform other peers where the object code and - Corresponding Source of the work are being offered to the general - public at no charge under subsection 6d. +- a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. +- b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the Corresponding + Source from a network server at no charge. +- c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. +- d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. +- e) Convey the object code using peer-to-peer transmission, + provided you inform other peers where the object code and + Corresponding Source of the work are being offered to the general + public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be @@ -363,23 +363,23 @@ Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: -- a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or -- b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or -- c) Prohibiting misrepresentation of the origin of that material, - or requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or -- d) Limiting the use for publicity purposes of names of licensors - or authors of the material; or -- e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or -- f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions - of it) with contractual assumptions of liability to the recipient, - for any liability that these contractual assumptions directly - impose on those licensors and authors. +- a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or +- b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or +- c) Prohibiting misrepresentation of the origin of that material, + or requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or +- d) Limiting the use for publicity purposes of names of licensors + or authors of the material; or +- e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or +- f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions + of it) with contractual assumptions of liability to the recipient, + for any liability that these contractual assumptions directly + impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you diff --git a/src/errors/cube-grid.css b/src/errors/cube-grid.css index 1f798ed..46cfb74 100644 --- a/src/errors/cube-grid.css +++ b/src/errors/cube-grid.css @@ -30,4 +30,4 @@ transform: translate(-50%, -50%); color: black; -} \ No newline at end of file +} diff --git a/src/page/cube/cube.css b/src/page/cube/cube.css index 4917b3f..99c9add 100644 --- a/src/page/cube/cube.css +++ b/src/page/cube/cube.css @@ -13,7 +13,7 @@ a { width: min-content; - padding: 0 .3em; + padding: 0 0.3em; border-radius: 1em; user-select: none; @@ -79,4 +79,4 @@ a { .left { transform: rotateY(-89.99999999999999deg) translateZ(2.498em); -} \ No newline at end of file +} diff --git a/src/page/page.css b/src/page/page.css index fd8bfaf..0020b67 100644 --- a/src/page/page.css +++ b/src/page/page.css @@ -77,4 +77,4 @@ html { a { text-decoration-line: none; -} \ No newline at end of file +} diff --git a/src/page/text/text.css b/src/page/text/text.css index 84d61f7..b2c37d2 100644 --- a/src/page/text/text.css +++ b/src/page/text/text.css @@ -28,7 +28,7 @@ nav { overflow-x: auto; background-color: white; - padding: .3em .6em; + padding: 0.3em 0.6em; /* Rotated 180deg so it's top instead of bottom. */ border-top-left-radius: 1em; @@ -38,7 +38,7 @@ nav { nav a { color: black; font-weight: bold; - margin-right: .6em; + margin-right: 0.6em; } a { @@ -50,7 +50,7 @@ a:hover { } footer { - border-top: .15em solid white; + border-top: 0.15em solid white; display: flex; justify-content: center; @@ -58,5 +58,5 @@ footer { font-size: small; margin-bottom: 1em; - padding-top: .5em; -} \ No newline at end of file + padding-top: 0.5em; +} diff --git a/src/routes/about.md b/src/routes/about.md index 7d40848..5848fce 100644 --- a/src/routes/about.md +++ b/src/routes/about.md @@ -1,3 +1,4 @@ +--- title: About --- diff --git a/src/routes/contact.md b/src/routes/contact.md index 540cdcc..a56d8b9 100644 --- a/src/routes/contact.md +++ b/src/routes/contact.md @@ -1,3 +1,4 @@ +--- title: Contact --- diff --git a/src/routes/index/index.css b/src/routes/index/index.css index 6efc8b4..14d9ba4 100644 --- a/src/routes/index/index.css +++ b/src/routes/index/index.css @@ -63,4 +63,4 @@ .left::after { background: linear-gradient(to bottom, cyan, blue); mask-image: linear-gradient(to left, blue, transparent); -} \ No newline at end of file +} diff --git a/src/routes/markdown.rs b/src/routes/markdown.rs index 618fb1d..bab98b5 100644 --- a/src/routes/markdown.rs +++ b/src/routes/markdown.rs @@ -26,15 +26,15 @@ pub static PAGES: LazyLock> = LazyLock::new( let content = String::from_utf8(file.content().to_vec()).unwrap(); - let (metadata, content) = content.split_once("---").unwrap(); + let mut parts = content.splitn(2, "---").skip(1); - let metadata: Metadata = serde_yaml::from_str(metadata).unwrap(); + let metadata: Metadata = serde_yaml::from_str(parts.next().unwrap()).unwrap(); log::info!("Adding page {path}"); Some(( path.strip_suffix(".md").unwrap().to_string(), - (metadata, markdown::parse(content)), + (metadata, markdown::parse(parts.next().unwrap())), )) })) });