···11# homepage
2233-[](https://hex.pm/packages/homepage)
44-[](https://hexdocs.pm/homepage/)
55-66-```sh
77-gleam add homepage@1
88-```
99-1010-```gleam
1111-import homepage
1212-1313-pub fn main() -> Nil {
1414- // TODO: An example of the project in use
1515-}
1616-```
1717-1818-Further documentation can be found at <https://hexdocs.pm/homepage>.
1919-2020-## Development
2121-2222-```sh
2323-gleam run # Run the project
2424-gleam test # Run the tests
2525-```
33+My personal site. Currently live at <https://strawmelonjuice.com> and <https://site.strawmelonjuice.com>.
+42-4
src/homepage.gleam
···1919pub fn posts() {
2020 [
2121 Post(
2222+ id: 4,
2323+ category: "Personal",
2424+ title: "What I use: 2026 edition",
2525+ summary: "And what changed recently, as I've never done these before.",
2626+ published: Date(2026, April, 18)
2727+ |> stuff.date_stamp(hours: 15, minutes: 30),
2828+ revised: None,
2929+ body: File(Djot, "./written-contents/blog/what-i-use-26.dj"),
3030+ tags: [
3131+ "coding",
3232+ "software engineering",
3333+ "technology",
3434+ "personal blog",
3535+ "tech",
3636+ "music",
3737+ "personal favourites",
3838+ "pokemon naming",
3939+ ".blog-personal",
4040+ "linux",
4141+ ],
4242+ aliases: [],
4343+ comments: CommentsDisable,
4444+ ),
4545+ Post(
2246 3,
2347 category: "Devlog",
2448 title: "I lied",
···81105 body: File(Djot, "./written-contents/blog/personal/2026/new-site.dj"),
82106 aliases: ["first"],
83107 comments: MastodonStatusLink("pony.social", "116213072855558563"),
8484- category: "Meta",
108108+ category: "Personal",
85109 tags: [
86110 "gleam",
87111 "lustre",
···155179 ),
156180 Post(
157181 id: 897,
158158- category: "Meta",
182182+ category: "Personal",
159183 title: "strawmelonjuice logo revamp 2026!",
160184 summary: "New logo design for strawmelonjuice in 2026! OMG!",
161185 published: Date(2026, January, 10) |> stuff.no_time_timestamp,
···211235 ),
212236 Post(
213237 id: 895,
214214- category: "brainfart as art",
238238+ category: "Art",
215239 title: "A misunderstanding",
216240 summary: "Just trying things out lol",
217241 published: Date(2023, July, 14) |> stuff.no_time_timestamp,
···446470 ),
447471 ),
448472 ]
473473+ // Hiding drafts!
474474+ |> list.filter(fn(post) {
475475+ case post.published |> timestamp.compare(timestamp.system_time()) {
476476+ order.Gt -> {
477477+ case modem.initial_uri() {
478478+ Ok(s) if s.host == Some("localhost") -> True
479479+ _ -> False
480480+ }
481481+ }
482482+ order.Eq -> True
483483+ order.Lt -> True
484484+ }
485485+ })
449486}
450487451488const pages = [
···749786import gleam/io
750787import gleam/list
751788import gleam/option.{type Option, None, Some}
789789+import gleam/order
752790import gleam/pair
753791import gleam/result
754792import gleam/string
···14951533 ]),
14961534 html.p([], [
14971535 html.text(
14981498- " This code is licensed under MIT License, content is mine, but can be freely shared with attribution in the form of a link to the original website. AI's and LLM's are not allowed to use any content, code or data from this website or it's repository.",
15361536+ " This code is licensed under MIT License, content is mine (source-available/most rights preserved), but can be freely shared with attribution in the form of a link to the original website. AI's and LLM's are not allowed to use any content, code or data from this website or it's repository.",
14991537 ),
15001538 ]),
15011539 ]),