Render
Constants
BASE_URL = ENV.fetch("BASE_URL", "https://crystal-shards.online")
NEW_PERIODS = {"today" => 1, "week" => 7, "month" => 30, "year" => 365}
Class methods
Inline SVG bar chart: shards created per month. Bars are links to the per-month listing (/new?month=YYYY-MM). Server-side, no JavaScript.
asset_v
Cache-busting version for /assets/style.css: the file's mtime, so a changed stylesheet gets a new URL and browsers never serve stale CSS.
category(slug : String, shards : Array(Shard), sort : String | Nil = nil, filter5 : Bool = false) : String
Sourcecategory_url(slug : String, sort : String | Nil, filter5 : Bool) : String
Sourceerror(code : Int32, message : String) : String
Sourcemonth_title(month : String) : String
Sourcepage(title, desc, path, content) : String
Sourcesearch(q : String, results : Array(Shard), total : Int32, sort : String | Nil = nil, filter5 : Bool = false) : String
Sourcesearch_url(q : String, sort : String | Nil, filter5 : Bool) : String
Query-string builders for sort/filter controls (no-JS, plain links).