# About this site My website has been online since 2013. It serves as a personal wiki where I collect bookmarks, excerpts, and thoughts. Some pages are rougher and mostly useful to me, while others are more polished and intended for other readers. Cam Pegg's defunct "Notes to Self" [listed the site](https://web.archive.org/web/20201022004958/https://notes.campegg.com/digital-gardens/) as a ["digital garden"](https://maggieappleton.com/garden-history). In its current incarnation, the site is a collection of interlinked HTML files produced by a custom static site generator and served by [Caddy](/caddy). The result is a wiki that only one person can edit. ## Contents ## Influences Influences on the site include Wikipedia, the [Tcler's Wiki](https://wiki.tcl-lang.org/), [Ward Cunningham's wiki](!W "WikiWikiWeb"), the [Memex](!W) and [Ted Nelson](!W)'s writings, [TiddlyWiki](https://en.wikipedia.org/wiki/TiddlyWiki), [TV Tropes](https://tvtropes.org/), [Everything2](!W), and [Everything Shii Knows](https://shii.bibanon.org/shii.org/knows/Everything_Shii_Knows.html). The common theme of these sites is writing evolving pages instead of finished blog posts. Other themes include internal linking, organizing link collections into documents (similar to Memex "trails"), and one page per subject. The biggest influence is [Gwern.net](https://gwern.net/). Watching its development was what made me turn a stalled blog into a personal wiki. Besides the [philosophy](https://gwern.net/about) of perpetual drafts and writing for your future self, the influence also shows in the design. I have borrowed many [design elements](https://gwern.net/design) from Gwern.net that are not visible to the reader, such as Pandoc, link archival, and the interwiki link syntax (`[favicon](!W)` to link to "Favicon" on Wikipedia), as well as visible design elements such as the [subscript dates](https://gwern.net/subscript) and link icons. ## Short URLs I experimented with long URLs derived from the page title by a simple algorithm. What I learned was that URLs should be short. They should also use a minimal set of characters in the path (`[/A-Za-z0-9.-_]`) and avoid [query strings](!W "Query string"). In the [Fossil incarnation](#fossil) of the site, I decided at first to embrace Wikipedia-style page naming: my page URLs would include the full title. I thought it was neat: one less thing to worry about, less friction when creating pages. My Fossil URLs started out as > [https://dbohdan.com/wiki?name=How+Internet+communities+function](https://dbohdan.com/wiki?name=How+Internet+communities+function) and evolved to > [https://dbohdan.com/wiki/How+Internet+communities+function](https://dbohdan.com/wiki/How+Internet+communities+function) and then > First, I realized the query part of a URL is too easily lost. Looking for alternatives, I discovered Fossil allowed `/wiki/Baz+foo` instead of `/wiki?name=Baz+foo`. I didn't link to my site from many places, yet I still noticed that spaces encoded as `+` in the path part of the URL were sometimes a problem for linking and automatic URL detection. Encoding spaces as `%20` worked more often but looked even uglier. Eventually, I gave up on the idea of page names with the full title. When I migrated off Fossil, I dropped the `/wiki/` part. My current URL format uses one or more lowercase English words joined with dashes: > ### See also - Sam Hughes, ["On short URLs"](https://qntm.org/urls){.no-link-icon}, (2011) - Derek Sivers, ["Short URLs: why and how"](https://sive.rs/su){.no-link-icon}, (2022) - Gwern Branwen, ["Design Graveyard: Long URLs"](https://gwern.net/design-graveyard#long-urls){.no-link-icon}, (2023) - [Clean URL](!W) I cannot fully endorse Derek Sivers's approach. I think regular words are preferable to single letters or initialisms. Words are easier to remember. They are easier to type on mobile devices with autocomplete. Typos are more obvious in common words. With words instead of single letters, typos are less likely to take you to an existing but incorrect page. ## Web design {#design} For almost a decade, the site used lightly customized [Bootstrap 3](https://getbootstrap.com/docs/3.3/): at first plain, then with the theme [Sandstone](https://bootswatch.com/3/sandstone/) from Bootswatch. Now the site uses its own stylesheet that partially imitates the look it had with Bootstrap. The site's current palette is built around a tweaked subset of colors from Sandstone. The site [favicon](!W) is taken from the original [Windows File Manager](https://github.com/microsoft/winfile) (`winfile.exe`). In 2018, Windows File Manager was released as free software under the MIT License. ### Dark mode The site implements [dark mode](!W) using the [`prefers-color-scheme`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/prefers-color-scheme) media query with a switch to override the OS/browser preference. It avoids the mistake of having a switch with only to states, light and dark, and allows the visitor to return to their OS/browser preference. The switch and the approach to dark mode are modeled on [Gwern.net's](https://gwern.net/design#dark-mode). The switch replaces the `media` attibute on a dedicated `