From beca0d5e148882d65a30aed01153a711c29780fd Mon Sep 17 00:00:00 2001 From: Lewin Kelly Date: Sun, 9 Jul 2023 14:28:57 +0100 Subject: [PATCH] Load revivals from markdown files in pages/index, and provide layout similar to blog posts --- README.md | 11 +++ pages/index/finobe.md | 24 +++++++ pages/index/goodblox.md | 24 +++++++ pages/index/hamblox.md | 24 +++++++ pages/index/idk18.md | 24 +++++++ pages/index/kapish.md | 22 ++++++ pages/index/krypton.md | 24 +++++++ pages/index/mercury.md | 24 +++++++ pages/index/meteorite.md | 24 +++++++ pages/index/rawblox.md | 24 +++++++ pages/index/tadah.md | 22 ++++++ pages/pages.js | 37 +++++++--- src/routes/blog/+page.ts | 3 +- .../blog/{[page] => [post]}/+page.server.ts | 9 +-- .../blog/{[page] => [post]}/+page.svelte | 8 +-- src/routes/index/+page.svelte | 63 ++--------------- src/routes/index/+page.ts | 21 ++++++ src/routes/revival/[revival]/+page.server.ts | 26 +++++++ src/routes/revival/[revival]/+page.svelte | 70 +++++++++++++++++++ 19 files changed, 406 insertions(+), 78 deletions(-) create mode 100644 pages/index/finobe.md create mode 100644 pages/index/goodblox.md create mode 100644 pages/index/hamblox.md create mode 100644 pages/index/idk18.md create mode 100644 pages/index/kapish.md create mode 100644 pages/index/krypton.md create mode 100644 pages/index/mercury.md create mode 100644 pages/index/meteorite.md create mode 100644 pages/index/rawblox.md create mode 100644 pages/index/tadah.md rename src/routes/blog/{[page] => [post]}/+page.server.ts (82%) rename src/routes/blog/{[page] => [post]}/+page.svelte (91%) create mode 100644 src/routes/index/+page.ts create mode 100644 src/routes/revival/[revival]/+page.server.ts create mode 100644 src/routes/revival/[revival]/+page.svelte diff --git a/README.md b/README.md index 6997de1..83dbafe 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,14 @@ To make a post, place it into the /pages directory. The filename will be used as "date": "2023-07-06 7:29 PM" } ``` + +A Revival description must include a "---" line between a short overview and the full post. A json header for a Revival could contain the following fields: + +```json +{ + "name": "Mercury", + "date": "2023-07-09 01:58 PM", + "clients": [2013], + "rating": 5 +} +``` diff --git a/pages/index/finobe.md b/pages/index/finobe.md new file mode 100644 index 0000000..f294a40 --- /dev/null +++ b/pages/index/finobe.md @@ -0,0 +1,24 @@ +```json +{ + "name": "Finobe", + "date": "2023-07-09 01:58 PM", + "clients": [2012, 2016], + "rating": 4 +} +``` + +Finobe is a revival + +--- + +Grailed laborum reprehenderit, id art party ea la croix small batch DIY fingerstache. Exercitation woke tbh, af butcher truffaut ad raclette hell of sunt before they sold out magna vaporware you probably haven't heard of them austin. Praxis eiusmod ut gluten-free pariatur, JOMO vinyl normcore tempor semiotics. Authentic kogi fashion axe yes plz veniam. Ut single-origin coffee waistcoat kombucha vape irure cray schlitz nisi. Cloud bread four dollar toast enamel pin sus. Butcher fam cliche salvia, af before they sold out selvage duis. + +Waistcoat enim hot chicken roof party mukbang. Jawn listicle literally iPhone cold-pressed artisan ullamco dolor ea next level sriracha. JOMO williamsburg ex blue bottle poke laboris. Gentrify sartorial palo santo irony hella labore. Readymade live-edge bespoke cronut labore. Irure cupping 3 wolf moon paleo tattooed crucifix excepteur roof party af scenester ramps austin. Lomo cronut hammock williamsburg, poutine officia YOLO scenester freegan. + +Adipisicing same selfies gorpcore. Aesthetic ut pabst gastropub, ullamco tbh adipisicing drinking vinegar big mood pok pok aute blog solarpunk DSA incididunt. Wayfarers fixie roof party air plant ut. Solarpunk tbh magna art party ipsum edison bulb ut semiotics deep v. Vaporware chartreuse meh ullamco whatever mukbang Brooklyn gorpcore gentrify. Fanny pack glossier laboris austin succulents. + +Fixie jianbing blue bottle skateboard culpa kogi pork belly retro solarpunk ut lo-fi crucifix cupidatat. Deserunt non hell of minim fit green juice tumeric butcher est. Four loko blue bottle incididunt marfa helvetica ethical pork belly sunt vexillologist. Offal fam big mood air plant. + +Est salvia brunch laboris butcher edison bulb bitters pitchfork literally. Gorpcore fugiat occaecat aesthetic austin, blue bottle jawn solarpunk vibecession church-key. Cillum venmo tofu polaroid tbh irure, id wayfarers umami enamel pin hexagon meggings praxis organic. Hoodie aesthetic synth farm-to-table pork belly pok pok. Ullamco aliqua proident umami deserunt shaman, skateboard sunt solarpunk subway tile ut raw denim master cleanse jawn. Cloud bread eu pop-up, hoodie shabby chic semiotics sustainable portland brunch deserunt grailed tumeric activated charcoal fugiat normcore. Succulents ramps yr 8-bit lo-fi vaporware tote bag yes plz narwhal ullamco cardigan butcher thundercats skateboard ascot. + +Dummy text? More like dummy thicc text, amirite? diff --git a/pages/index/goodblox.md b/pages/index/goodblox.md new file mode 100644 index 0000000..ad18028 --- /dev/null +++ b/pages/index/goodblox.md @@ -0,0 +1,24 @@ +```json +{ + "name": "Goodblox", + "date": "2023-07-09 01:58 PM", + "clients": [2009], + "rating": 4.5 +} +``` + +Goodblox is a revival + +--- + +Minim viral gochujang ipsum et cred pitchfork shaman copper mug lumbersexual. Ipsum +1 fanny pack, twee chartreuse biodiesel fixie vexillologist tbh master cleanse unicorn subway tile officia. Tempor sunt small batch, waistcoat keffiyeh yes plz kogi. Adaptogen woke yes plz JOMO actually. You probably haven't heard of them kickstarter mollit chia whatever vaporware tonx man bun ethical letterpress cardigan. Blog nostrud vaporware aute woke. Before they sold out irure lorem, austin freegan vice ullamco in disrupt grailed franzen quinoa quis bushwick. + +Mukbang ipsum commodo godard. Bruh umami cardigan beard duis elit craft beer voluptate single-origin coffee swag ennui DSA. Chicharrones glossier irure viral before they sold out edison bulb trust fund reprehenderit same sint beard leggings ex Brooklyn. Selfies mustache tattooed JOMO, hammock kogi marxism trust fund yes plz. Butcher beard magna dolor. Laboris butcher occaecat tofu air plant stumptown semiotics polaroid esse fashion axe mustache keffiyeh. + +Everyday carry consectetur jawn leggings lorem culpa iceland. Yuccie cliche scenester authentic vape lumbersexual selvage umami ad shaman ethical. Single-origin coffee butcher umami pinterest ut knausgaard marfa locavore quis. Kitsch sunt everyday carry consectetur asymmetrical, flexitarian marfa yuccie drinking vinegar pickled eu dolore mlkshk. + +Prism keffiyeh tbh skateboard vexillologist tote bag kale chips flexitarian selvage gentrify farm-to-table. Sunt poke trust fund, migas tbh affogato YOLO keytar yr. Ascot coloring book waistcoat man bun la croix next level. Ad trust fund cupidatat veniam Brooklyn swag, JOMO selfies bodega boys. Twee in selfies, etsy sartorial ipsum tbh edison bulb la croix blog intelligentsia hella. Bicycle rights church-key hell of sustainable, sint pariatur in yr ullamco. + +Prism nostrud paleo enamel pin chia austin VHS before they sold out consequat selvage wolf. Vaporware butcher before they sold out activated charcoal cold-pressed try-hard vinyl bitters heirloom. Gentrify mixtape heirloom, dolore eu hashtag chia sint kale chips. Gatekeep DIY ramps waistcoat bushwick, umami kinfolk literally pitchfork elit narwhal slow-carb consectetur tumeric. + +Dummy text? More like dummy thicc text, amirite? diff --git a/pages/index/hamblox.md b/pages/index/hamblox.md new file mode 100644 index 0000000..fa1eed5 --- /dev/null +++ b/pages/index/hamblox.md @@ -0,0 +1,24 @@ +```json +{ + "name": "Hamblox", + "date": "2023-07-09 01:58 PM", + "clients": [2015], + "rating": 3.7 +} +``` + +Hamblox is a revival + +--- + +Big mood dolor +1, post-ironic green juice williamsburg you probably haven't heard of them edison bulb af asymmetrical poke chicharrones iPhone bespoke put a bird on it. Heirloom paleo air plant, raclette woke pariatur selfies chambray. Hashtag sunt you probably haven't heard of them velit meggings. Polaroid activated charcoal lyft messenger bag adipisicing, minim prism squid shabby chic yes plz kinfolk Brooklyn. + +Exercitation seitan jawn coloring book same. Williamsburg yes plz thundercats kinfolk cardigan. Hexagon ugh coloring book exercitation blog master cleanse tattooed venmo bespoke. Brooklyn irony banh mi, kale chips knausgaard ut wolf. Ennui man braid scenester yes plz 90's, fashion axe pour-over semiotics raw denim sed lorem salvia. Humblebrag iceland quinoa chillwave, retro ennui twee woke bruh deep v ea. + +Snackwave food truck ennui lomo live-edge, cupidatat vibecession voluptate sed celiac 3 wolf moon tousled vinyl austin hot chicken. Green juice minim est occupy fingerstache qui celiac thundercats consectetur cray commodo authentic. Adipisicing narwhal pinterest raclette try-hard DIY ipsum, pug tousled forage helvetica consectetur locavore artisan. Forage iPhone echo park, listicle leggings big mood ramps ullamco tempor sunt typewriter gorpcore you probably haven't heard of them. + +Banh mi deep v roof party activated charcoal dolore crucifix iceland. Asymmetrical disrupt health goth proident mukbang authentic. Hashtag gastropub locavore marxism elit, snackwave consectetur anim enamel pin. Shaman glossier vinyl, flannel sustainable deserunt VHS succulents subway tile laboris. Veniam sustainable vinyl, nostrud sriracha shaman nulla deserunt irure semiotics leggings. + +Succulents yr pop-up 8-bit. Exercitation bespoke pour-over fingerstache voluptate art party hammock occupy XOXO ullamco laboris ennui shoreditch chia marxism. Chicharrones labore pickled hashtag butcher exercitation hella church-key scenester twee af. Et four dollar toast jawn venmo bruh, yes plz labore kombucha palo santo laborum sed ut. + +Dummy text? More like dummy thicc text, amirite? diff --git a/pages/index/idk18.md b/pages/index/idk18.md new file mode 100644 index 0000000..1d980db --- /dev/null +++ b/pages/index/idk18.md @@ -0,0 +1,24 @@ +```json +{ + "name": "idk18", + "date": "2023-07-09 01:58 PM", + "clients": [2018], + "rating": 1.7 +} +``` + +idk18 is a revival + +--- + +Taxidermy adaptogen do hot chicken consequat elit blue bottle pinterest portland velit normcore fashion axe anim mumblecore ex. Sus keffiyeh hot chicken affogato slow-carb nulla reprehenderit, occaecat neutral milk hotel chillwave XOXO tacos. Sus eu aliquip, shaman labore pinterest mumblecore narwhal kickstarter. Fit occaecat taiyaki DIY, succulents sint brunch magna tumblr YOLO thundercats. + +Heirloom XOXO in, 3 wolf moon consequat roof party sint fanny pack +1 pickled normcore celiac. Bitters four dollar toast sus lorem deserunt. Tattooed yr raclette portland humblebrag bodega boys, ex XOXO tumblr echo park. Consectetur health goth pariatur marfa street art. Intelligentsia tote bag etsy ea church-key. Non gochujang jianbing marfa. + +Gatekeep woke gastropub prism. Distillery pug PBR&B authentic. Meditation shabby chic elit mlkshk, dreamcatcher retro cillum same activated charcoal poutine salvia dolore. Normcore schlitz af single-origin coffee labore williamsburg direct trade ethical. Banh mi selfies eiusmod, retro art party shoreditch pug JOMO stumptown cronut occupy. + +Helvetica schlitz cillum sunt cornhole, sint jianbing whatever. Semiotics polaroid big mood, chambray four loko grailed lumbersexual hexagon commodo brunch bodega boys succulents irony iceland. Disrupt veniam cred, pok pok celiac venmo franzen literally qui. Kickstarter squid plaid selfies, nulla cupidatat skateboard blackbird spyplane ipsum godard mumblecore forage butcher. Locavore flannel chia, ea iceland veniam dolore nisi. Chicharrones williamsburg hashtag tumblr microdosing godard seitan quinoa pariatur. Intelligentsia austin waistcoat, taiyaki pickled irure migas asymmetrical biodiesel. + +Freegan forage four dollar toast helvetica ut. Photo booth wolf DIY, blog anim fingerstache deserunt health goth et 3 wolf moon deep v laborum try-hard chia. Direct trade intelligentsia quinoa qui before they sold out kinfolk. Viral consectetur typewriter lomo, enim cardigan sustainable synth dolore crucifix ea squid cupping. + +Dummy text? More like dummy thicc text, amirite? diff --git a/pages/index/kapish.md b/pages/index/kapish.md new file mode 100644 index 0000000..b27fe5e --- /dev/null +++ b/pages/index/kapish.md @@ -0,0 +1,22 @@ +```json +{ + "name": "kapish", + "date": "2023-07-09 01:58 PM", + "clients": [2014, 2016], + "rating": 2.3 +} +``` + +kapish is a revival + +--- + +Tousled kinfolk coloring book +1 blackbird spyplane celiac vice palo santo mixtape grailed YOLO elit. Portland etsy fixie poutine. Pariatur gluten-free activated charcoal, XOXO godard shaman iceland. Art party single-origin coffee magna humblebrag sustainable celiac swag. + +Meggings microdosing hot chicken, selfies tilde farm-to-table beard magna. Umami polaroid offal, selfies minim brunch culpa. Chia XOXO sartorial, man braid in hell of dolore leggings. Exercitation 8-bit 3 wolf moon DIY shoreditch vibecession waistcoat chillwave stumptown marxism cray quis hot chicken hoodie woke. Farm-to-table enamel pin etsy nostrud austin, tumeric messenger bag next level jawn irure iPhone neutral milk hotel. Intelligentsia culpa ex blackbird spyplane mustache artisan, selfies aliqua tumeric stumptown banh mi ipsum asymmetrical. Artisan photo booth banh mi asymmetrical. + +Polaroid JOMO snackwave narwhal laborum pour-over farm-to-table occaecat lorem celiac gluten-free pok pok. Authentic live-edge hexagon green juice kale chips. Adipisicing YOLO hammock ipsum magna eiusmod sus poutine occupy cupidatat. Nostrud adipisicing celiac tattooed. Snackwave kale chips health goth ut exercitation. In cronut kombucha mumblecore pok pok humblebrag. + +You probably haven't heard of them migas flannel hammock banh mi minim. Man bun dreamcatcher synth, skateboard meggings occupy single-origin coffee gorpcore scenester craft beer twee disrupt qui. Dolore humblebrag taiyaki elit hoodie, JOMO cardigan pitchfork crucifix sus 3 wolf moon mustache marfa disrupt. Live-edge anim brunch, fugiat blog godard irony. Poutine selvage raclette, celiac distillery jean shorts try-hard. Brooklyn taiyaki meh lomo fugiat semiotics. Gatekeep in DSA occupy. + +Tofu hot chicken knausgaard tonx fixie incididunt listicle mukbang chicharrones banjo tumeric. Bespoke magna meditation lorem cray tote bag mixtape tilde heirloom. Synth yes plz nulla marxism. Ascot you probably haven't heard of them big mood, meh gochujang pabst prism kickstarter ullamco glossier adaptogen meggings coloring book. Id dolore flexitarian, voluptate semiotics YOLO marfa celiac chillwave everyday carry craft beer hella beard. Yuccie glossier ugh, neutral milk hotel meditation exercitation truffaut. Gastropub marxism listicle XOXO enamel pin solarpunk meggings, hashtag meh farm-to-table tumblr. diff --git a/pages/index/krypton.md b/pages/index/krypton.md new file mode 100644 index 0000000..5824ede --- /dev/null +++ b/pages/index/krypton.md @@ -0,0 +1,24 @@ +```json +{ + "name": "Krypton", + "date": "2023-07-09 01:58 PM", + "clients": [2011], + "rating": 4.7 +} +``` + +Krypton is a revival + +--- + +Artisan qui marxism mumblecore craft beer. Do lo-fi consequat raw denim gastropub sed blog, tumblr intelligentsia PBR&B. Deserunt fit ut retro. Gochujang mlkshk 3 wolf moon, lomo nisi excepteur tacos tousled vinyl et portland tilde. + +Ramps fugiat bicycle rights iPhone air plant hell of nulla. Occaecat neutral milk hotel incididunt dreamcatcher stumptown. Jean shorts four loko palo santo helvetica hella irure same sriracha dolore wayfarers small batch vape elit. Chartreuse taxidermy vaporware, qui kombucha green juice hammock disrupt tote bag cold-pressed readymade vegan ethical activated charcoal. Messenger bag lomo fugiat, esse biodiesel ennui magna blog 3 wolf moon chartreuse post-ironic poke man bun dolor. + +Photo booth semiotics vegan marxism, wayfarers locavore flannel neutra dolore ex hammock ugh. Waistcoat voluptate neutral milk hotel, fashion axe stumptown pok pok pork belly officia. Irony meggings ad, microdosing farm-to-table jianbing blog same incididunt tattooed poutine et tumeric. Actually meh quis same cray shaman. Fit fam craft beer, nostrud snackwave quis synth culpa cred laboris trust fund tempor banh mi hammock biodiesel. + +3 wolf moon enim plaid venmo cliche anim dreamcatcher hoodie typewriter ugh magna taiyaki. Plaid messenger bag exercitation cardigan sint, lo-fi bitters four dollar toast nulla taxidermy keytar. Neutral milk hotel in shoreditch lumbersexual. Heirloom kickstarter four loko, echo park ut bitters vexillologist. Af copper mug literally artisan slow-carb, exercitation bitters. Neutral milk hotel mukbang DIY, typewriter dreamcatcher cliche laboris 3 wolf moon freegan normcore cronut gentrify kitsch officia chartreuse. Actually tote bag esse hot chicken literally neutral milk hotel. + +Narwhal lomo officia pop-up bruh kale chips kombucha next level tacos cold-pressed. Yuccie hammock irure mustache same. 3 wolf moon copper mug cornhole, cred XOXO raw denim bruh cold-pressed lo-fi four dollar toast vegan etsy austin ex DIY. Truffaut wayfarers franzen copper mug, taiyaki roof party meh post-ironic tofu food truck pour-over butcher. Ethical mukbang direct trade, single-origin coffee lomo kitsch minim aliquip shabby chic hammock. Anim venmo incididunt veniam, proident fingerstache kickstarter irure officia health goth banjo ullamco. Tilde edison bulb williamsburg neutra letterpress banh mi est. + +Dummy text? More like dummy thicc text, amirite? diff --git a/pages/index/mercury.md b/pages/index/mercury.md new file mode 100644 index 0000000..b6ff337 --- /dev/null +++ b/pages/index/mercury.md @@ -0,0 +1,24 @@ +```json +{ + "name": "Mercury", + "date": "2023-07-09 01:58 PM", + "clients": [2013], + "rating": 5 +} +``` + +Mercury is a revival + +--- + +Tilde lorem tbh, cliche eu forage laborum franzen vice. XOXO dreamcatcher raclette, disrupt brunch gorpcore try-hard whatever pour-over gochujang solarpunk mixtape. Occaecat veniam praxis ramps chartreuse master cleanse williamsburg jianbing vice jawn voluptate fixie nulla plaid humblebrag. Farm-to-table tofu 90's gochujang deep v affogato. Hella yes plz ipsum actually truffaut narwhal viral ut. Fam fixie mustache bushwick. + +Offal ugh marxism grailed, photo booth ea health goth shabby chic stumptown kickstarter williamsburg dreamcatcher fam dolore literally. Est synth palo santo put a bird on it disrupt dreamcatcher. Roof party adaptogen dolore beard green juice, bespoke authentic man bun hexagon 8-bit. Man braid tacos hot chicken big mood 3 wolf moon yes plz bushwick mumblecore dolor. + +Ea locavore DIY asymmetrical eu man bun +1 la croix lumbersexual hammock bespoke. Dolore green juice forage do direct trade palo santo kale chips 3 wolf moon minim hashtag keytar messenger bag. Cliche salvia adipisicing et lorem health goth pinterest. Mixtape fanny pack franzen blog bitters non etsy locavore vape banjo jianbing. Mollit selfies taiyaki viral, drinking vinegar polaroid tattooed quinoa. + +Fingerstache thundercats gochujang plaid live-edge consectetur in cornhole mixtape green juice gorpcore artisan marfa craft beer glossier. Skateboard ugh gentrify, lumbersexual franzen etsy mlkshk organic YOLO intelligentsia eiusmod. Occaecat quis marfa vibecession. Aliqua readymade beard officia disrupt labore. Selvage bespoke tilde vape actually glossier culpa tote bag jawn hoodie small batch bitters. Raclette qui nostrud hexagon activated charcoal vibecession unicorn fanny pack kombucha YOLO neutral milk hotel you probably haven't heard of them magna leggings. + +Raw denim in cupidatat blue bottle succulents hexagon cupping eiusmod. Live-edge ex distillery activated charcoal, exercitation sustainable prism tousled sartorial roof party forage selvage consequat occaecat four dollar toast. Neutral milk hotel tousled jawn quis big mood DSA intelligentsia. Praxis prism viral squid. In food truck affogato disrupt palo santo. + +Dummy text? More like dummy thicc text, amirite? diff --git a/pages/index/meteorite.md b/pages/index/meteorite.md new file mode 100644 index 0000000..0d18dd3 --- /dev/null +++ b/pages/index/meteorite.md @@ -0,0 +1,24 @@ +```json +{ + "name": "Meteorite", + "date": "2023-07-09 01:58 PM", + "clients": [2016, 2020], + "rating": 2.7 +} +``` + +Meteorite is a revival + +--- + +Banjo bruh gatekeep, scenester mukbang crucifix XOXO everyday carry. Ullamco JOMO vinyl eu prism et. Roof party shoreditch green juice fugiat post-ironic chillwave flannel fixie bodega boys vegan prism snackwave etsy. Tote bag bodega boys church-key, voluptate palo santo vice wolf food truck leggings hot chicken subway tile. + +Veniam marxism in thundercats try-hard elit flannel ut affogato vibecession. Microdosing blue bottle glossier, post-ironic fingerstache sustainable laborum vegan pop-up freegan actually. Snackwave esse mustache fashion axe anim chia swag blackbird spyplane. Ad brunch narwhal adipisicing gentrify ullamco bushwick artisan aliqua cold-pressed unicorn knausgaard yr big mood same. + +Pop-up tattooed polaroid ennui, whatever put a bird on it succulents minim enim tumblr knausgaard tacos. Franzen cupidatat irure organic, af semiotics meditation chia. Cronut semiotics cold-pressed microdosing shoreditch pug XOXO. Actually voluptate chambray meh. Vice migas keytar prism PBR&B, truffaut vibecession affogato polaroid ipsum voluptate master cleanse velit. Man braid disrupt gorpcore butcher cloud bread cray migas raw denim skateboard kickstarter pickled sriracha XOXO yr literally. + +Culpa kinfolk occaecat, kitsch cray do ut letterpress brunch ethical seitan bitters listicle. Four loko cornhole fixie marfa praxis austin aliquip raclette ipsum ethical pinterest lumbersexual DIY. Tumeric vinyl celiac la croix. Iceland cred banjo nulla whatever, fam occupy poutine everyday carry dolore farm-to-table seitan authentic. Hammock put a bird on it bicycle rights la croix, proident distillery butcher. Cardigan celiac beard live-edge pinterest tbh. + +Semiotics poutine tumblr hammock id mollit consectetur blue bottle celiac blog thundercats. Af hexagon irony mukbang iPhone snackwave. Stumptown snackwave polaroid leggings literally hammock. Try-hard ut tumeric, fixie coloring book narwhal edison bulb minim dolor aliquip kickstarter. Gorpcore VHS hexagon, labore mumblecore kombucha poke slow-carb. Ullamco laboris portland ut neutral milk hotel sustainable. + +Dummy text? More like dummy thicc text, amirite? diff --git a/pages/index/rawblox.md b/pages/index/rawblox.md new file mode 100644 index 0000000..9401cef --- /dev/null +++ b/pages/index/rawblox.md @@ -0,0 +1,24 @@ +```json +{ + "name": "Rawblox", + "date": "2023-07-09 01:58 PM", + "clients": [2017], + "rating": 1 +} +``` + +Rawblox is a revival + +--- + +Leggings chartreuse organic id proident. Ascot tattooed bruh palo santo portland roof party. Etsy irure anim flannel ennui cold-pressed same. Next level sartorial elit, adipisicing vexillologist bodega boys taiyaki before they sold out venmo. Try-hard austin four loko organic beard in narwhal tempor quinoa mollit. Tofu ut distillery knausgaard listicle Brooklyn keffiyeh tumblr vice aliqua meggings. + +Vinyl selfies fingerstache waistcoat, deep v chartreuse nulla. Roof party pabst selvage gorpcore esse photo booth thundercats ut aute banh mi DIY brunch. Tousled locavore ugh kitsch qui vape mollit hoodie. Kinfolk yes plz lorem Brooklyn. + +Ugh hammock tonx, tbh franzen you probably haven't heard of them ut anim. Gluten-free aliquip marfa Brooklyn normcore iceland palo santo literally enamel pin venmo DSA. Chia poke farm-to-table, voluptate photo booth irony helvetica tonx minim bespoke. Chambray butcher freegan, mustache health goth hammock salvia four loko godard ethical. Sed solarpunk enim ut, aliqua jean shorts adaptogen. Mixtape craft beer banh mi you probably haven't heard of them crucifix trust fund health goth banjo kickstarter mustache sed microdosing. + +Enamel pin lo-fi gochujang messenger bag venmo. Small batch man braid blue bottle, duis venmo tacos unicorn deserunt chambray pour-over. Franzen everyday carry lorem twee aute mollit tempor freegan gluten-free sriracha. Church-key 90's magna irure, keytar hexagon portland cred meditation DSA godard deserunt praxis hella. Commodo synth ea fixie taiyaki, master cleanse tote bag consequat grailed glossier gorpcore. Fit gochujang authentic typewriter. + +Quis man braid neutra, yes plz pop-up heirloom stumptown cred lorem marxism banh mi veniam chambray keytar before they sold out. Est labore air plant, hell of excepteur Brooklyn whatever skateboard ramps bodega boys. Biodiesel velit pug adipisicing jawn lyft, listicle retro enim. Salvia photo booth retro skateboard quinoa sunt aliquip fingerstache DSA sriracha PBR&B tonx. Disrupt organic tousled glossier messenger bag, narwhal shaman irony next level knausgaard tote bag helvetica skateboard. Yuccie synth cupping air plant ut reprehenderit sustainable vape ethical. + +Dummy text? More like dummy thicc text, amirite? diff --git a/pages/index/tadah.md b/pages/index/tadah.md new file mode 100644 index 0000000..a68637e --- /dev/null +++ b/pages/index/tadah.md @@ -0,0 +1,22 @@ +```json +{ + "name": "Tadah", + "date": "2023-07-09 01:58 PM", + "clients": [2010, 2012, 2014, 2016], + "rating": 3.5 +} +``` + +Tadah is a revival + +--- + +Sed enim shaman roof party taiyaki pabst ipsum palo santo irure normcore polaroid small batch. Dolor ugh shoreditch incididunt laboris salvia iceland cornhole consectetur poutine raw denim fixie sunt activated charcoal. PBR&B pitchfork excepteur, woke eu affogato plaid leggings taiyaki. Kombucha hot chicken palo santo, laborum tempor aliqua cliche id jawn irony shaman. Tumeric et celiac, coloring book put a bird on it sartorial butcher cornhole heirloom. + +Hashtag mlkshk anim, humblebrag commodo messenger bag pickled neutra. Anim ad locavore biodiesel. Four loko PBR&B disrupt hella praxis. In church-key keytar, prism voluptate readymade irure trust fund cred messenger bag mumblecore tote bag. Sint iPhone heirloom celiac chambray. Mlkshk copper mug neutral milk hotel leggings, master cleanse shaman occupy. + +Vexillologist YOLO jianbing ullamco. Aesthetic neutral milk hotel trust fund migas pok pok, whatever occupy. Fam cronut subway tile swag four loko. Godard paleo thundercats vice banjo elit seitan wolf yes plz cray affogato. Nostrud meh lomo magna. Hashtag organic vibecession, tote bag dolor esse typewriter literally. Pork belly seitan VHS, vibecession pariatur fit kale chips quis. + +Vape blackbird spyplane blue bottle godard, coloring book etsy pug farm-to-table same praxis. Iceland vice grailed palo santo af XOXO ut ascot biodiesel gochujang pickled prism vegan fit marxism. Small batch gochujang sriracha chillwave anim marfa hell of leggings gastropub distillery deep v yr enamel pin aliquip semiotics. Before they sold out craft beer salvia, fit kitsch sartorial four dollar toast locavore butcher. + +Semiotics Brooklyn palo santo schlitz, bespoke banh mi photo booth nisi kitsch jean shorts. Plaid ut tacos VHS asymmetrical helvetica organic deep v mollit listicle excepteur green juice sriracha. Praxis cronut cliche labore meditation literally intelligentsia. Disrupt health goth yuccie blue bottle consectetur. Aute raw denim actually brunch asymmetrical. Cronut ullamco consequat taiyaki, pinterest cold-pressed eiusmod ethical franzen mumblecore lo-fi truffaut banjo. Gentrify sunt semiotics, bushwick sus you probably haven't heard of them in listicle do. diff --git a/pages/pages.js b/pages/pages.js index f75c027..1bc8cb5 100644 --- a/pages/pages.js +++ b/pages/pages.js @@ -4,6 +4,13 @@ import fs from "fs" // Convert all markdown files in the pages directory and all subdirectories // to HTML, and output as JSON files in the pagesjson directory. +const parseMD = md => + marked.parse(md, { + mangle: false, + headerIds: false, + }) + +// thx copilot function walk(dir) { let results = [] @@ -26,20 +33,34 @@ const allMdFiles = walk("./pages") if (fs.existsSync("./pagesjson")) fs.rmSync("./pagesjson", { recursive: true }) allMdFiles.forEach(file => { - let md = fs.readFileSync(file.name, "utf8") + let md = fs.readFileSync(file.name, "utf8").replace(/\r\n/g, "\n") // Get json data from the top of the file const [json, content] = md .match(/^```json[\s\S]*({[\s\S]+})[\s\S]*```\n*([\s\S]+)$/) .slice(1, 3) - const obj = { - ...JSON.parse(json), - html: marked.parse(content, { - mangle: false, - headerIds: false, - }), - } + let obj + + if (file.name.includes("/index/")) { + // It's a Revival description + try { + const [overview, post] = content.split("\n---\n") + obj = { + ...JSON.parse(json), + overview: parseMD(overview), + html: parseMD(post), + } + } catch (e) { + throw new Error( + `Error parsing ${file.name}: check that it has an overview and post section separated by ---` + ) + } + } else + obj = { + ...JSON.parse(json), + html: parseMD(content), + } fs.mkdirSync( file.name diff --git a/src/routes/blog/+page.ts b/src/routes/blog/+page.ts index f1c0e09..9631cc7 100644 --- a/src/routes/blog/+page.ts +++ b/src/routes/blog/+page.ts @@ -4,12 +4,11 @@ export async function load() { return { posts: Promise.all( Object.entries(allPostFiles).map(async ([path, resolver]) => { - const { title, date, html } = (await resolver()) as any + const { title, date } = (await resolver()) as any return { title, date, - html, path: path.match(/(\w+)\.json/)?.[1], } }) diff --git a/src/routes/blog/[page]/+page.server.ts b/src/routes/blog/[post]/+page.server.ts similarity index 82% rename from src/routes/blog/[page]/+page.server.ts rename to src/routes/blog/[post]/+page.server.ts index 50016da..0be5b3f 100644 --- a/src/routes/blog/[page]/+page.server.ts +++ b/src/routes/blog/[post]/+page.server.ts @@ -6,7 +6,7 @@ export async function load({ params }) { try { ;({ title, date, html } = await import( - `../../../../pagesjson/blog/${params.page}.json` + `../../../../pagesjson/blog/${params.post}.json` )) } catch (e) { throw error(404, "Post not found") @@ -18,10 +18,5 @@ export async function load({ params }) { const index = posts.findIndex(post => post.title == title) posts.splice(index, 1) - return { - title, - date, - html, - posts, - } + return { title, date, html, posts } } diff --git a/src/routes/blog/[page]/+page.svelte b/src/routes/blog/[post]/+page.svelte similarity index 91% rename from src/routes/blog/[page]/+page.svelte rename to src/routes/blog/[post]/+page.svelte index 7b2d49f..8002cfd 100644 --- a/src/routes/blog/[page]/+page.svelte +++ b/src/routes/blog/[post]/+page.svelte @@ -1,6 +1,4 @@ - + {data.title} • Revival Archive @@ -37,7 +37,7 @@ {#if data.posts.length > 0} -
+

Other posts

{#each data.posts as post} @@ -79,15 +28,15 @@

Revival Index

- {#each revivals as revival} + {#each data.revivals as revival}

{revival.name}

- {#each revival.years as year} + {#each revival.clients as year} @@ -95,8 +44,8 @@ {/each}
-
- This revival is one of the revivals ever! Play today! +
+ {@html revival.overview}
diff --git a/src/routes/index/+page.ts b/src/routes/index/+page.ts new file mode 100644 index 0000000..cb08636 --- /dev/null +++ b/src/routes/index/+page.ts @@ -0,0 +1,21 @@ +export async function load() { + const allPostFiles = import.meta.glob("../../../pagesjson/index/*.json") + + return { + revivals: Promise.all( + Object.entries(allPostFiles).map(async ([path, resolver]) => { + const { name, date, clients, rating, overview } = + (await resolver()) as any + + return { + name, + date, + clients, + rating, + overview, + path: path.match(/(\w+)\.json/)?.[1], + } + }) + ), + } +} diff --git a/src/routes/revival/[revival]/+page.server.ts b/src/routes/revival/[revival]/+page.server.ts new file mode 100644 index 0000000..4bfcc33 --- /dev/null +++ b/src/routes/revival/[revival]/+page.server.ts @@ -0,0 +1,26 @@ +import { error } from "@sveltejs/kit" +import { load as loadParent } from "../../index/+page" + +export async function load({ params }) { + let name: string, + date: Date, + clients: number[], + rating: number, + html: string + + try { + ;({ name, date, clients, rating, html } = await import( + `../../../../pagesjson/index/${params.revival}.json` + )) + } catch (e) { + throw error(404, "Revival not found") + } + + const revivals = await (await loadParent()).revivals + + // remove the current post from the list + const index = revivals.findIndex(revival => revival.name == name) + revivals.splice(index, 1) + + return { name, date, clients, rating, html, revivals } +} diff --git a/src/routes/revival/[revival]/+page.svelte b/src/routes/revival/[revival]/+page.svelte new file mode 100644 index 0000000..72ab7db --- /dev/null +++ b/src/routes/revival/[revival]/+page.svelte @@ -0,0 +1,70 @@ + + + + + {data.name} • Revival Archive + + +
+
+
+ ← Back to Index +
+ +

{data.name}

+ + Published {when(data.date)} + +
+ +
+ +
+ {@html data.html} +
+ +
+ Rating: + +
+
+
+
+ {#if data.revivals.length > 0} +
+

Other revivals

+ {#each data.revivals as revival} + +
+

{revival.name}

+ + Published {when(revival.date)} + +
+
+ {/each} +
+ {/if} +
+ +