Skip to content

Commit

Permalink
update homepage, remove snippets category
Browse files Browse the repository at this point in the history
  • Loading branch information
tjheffner committed Jan 13, 2024
1 parent 74dbeb6 commit 6f87f35
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 27 deletions.
29 changes: 18 additions & 11 deletions src/routes/(main)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,32 @@
</h1>
</Slice>

<Slice title="Hello!">
<p>this site is perpetually under construction but coming along :)</p>
<Slice title="Hello World!">
<p>This site is perpetually under construction but coming along :)</p>

<p>it's mostly a reminder of past work and a place for me to post recipes I like, with the occasional technical post or personal blog mixed in.<p>
<p>It's mostly a place for me to post recipes I like, with the occasional technical post or personal blog mixed in. Some work-related stuff can be found here too, but that's not what I want to talk about.<p>

<p>thanks for stopping by, check out the links that work</p>
<p>Thanks for stopping by, check out the links that work ✌️</p>
</Slice>

<Slice title="Fav Recipes">

<Slice title="Currently...">
<p><span class="text-3xl">🎶</span> - Stove God Cooks, Nujabes, Fleetwood Mac</p>
<p><span class="text-3xl">🍿</span> - The Righteous Gemstones, Saltburn</p>
<p><span class="text-3xl">📚</span> - Thinking, Fast And Slow by Daniel Kahneman</p>
<p><span class="text-3xl">🎮</span> - Baldur's Gate 3, Monster Train, RDR2</p>

<p class="text-xs">Last updated: Jan 12, 2024</p>
</Slice>

<Slice title="Top Recipes">
<p>In no particular order...</p>
<div class="grid w-full grid-cols-1 md:grid-cols-3 gap-4 align-middle">
<Card title="Creme Brulee" href={'/creme-brulee'}/>
<Card title="Caper Butter" href={'/dill-caper-compound-butter'} />
<Card title="Preserved Lemons" href={'/preserved-lemons'}/>
<Card title="Pizza Dough" href={'/pizza-dough'}/>
<Card title="Chicken & Bean Stew" href={'/southwest-chicken-bean-stew'}/>
</div>
</Slice>

<!-- <Slice title="Latest Tech Posts">
<div class="grid w-full grid-cols-1 md:grid-cols-3 gap-4 align-middle">
pull the latest 3 posts that have `technical` or `snippet` category here
</div>
</Slice> -->
</section>
17 changes: 1 addition & 16 deletions src/routes/(main)/blog/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
};
let recipes = false;
let snippets = false;
let technical = false;
let notes = false;
Expand All @@ -50,7 +49,6 @@
if (!Array.isArray(givenstate.show)) givenstate.show = [givenstate.show];
if (!givenstate.show.includes('Recipes')) recipes = false;
if (!givenstate.show.includes('Technical')) technical = false;
if (!givenstate.show.includes('Snippets')) snippets = false;
if (!givenstate.show.includes('Notes')) notes = false;
if (givenstate.filter) filterStr = givenstate.filter;
urlState = { ...defaultURLState, ...givenstate };
Expand All @@ -63,7 +61,6 @@
filter: filterStr,
show: [
recipes && 'Recipes',
snippets && 'Snippets',
technical && 'Technical',
notes && 'Notes'
].filter(Boolean)
Expand Down Expand Up @@ -99,10 +96,9 @@
if (filterStr && notIncludes(filterStr, x)) {
return false;
} else {
if ([recipes, technical, snippets, notes].every((v) => v === false)) return true;
if ([recipes, technical, notes].every((v) => v === false)) return true;
if (recipes && x.category === 'recipe') return true;
if (technical && x.category === 'technical') return true;
if (snippets && x.category === 'snippet') return true;
if (notes && x.category === 'note') return true;
}
});
Expand Down Expand Up @@ -168,17 +164,6 @@
>
Recipes
</button>
<button
type="button"
on:click={() => {
saveURLState();
snippets = !snippets;
}}
class:activefilter={snippets}
class="filter"
>
Snippets
</button>
<button
type="button"
on:click={() => {
Expand Down

0 comments on commit 6f87f35

Please sign in to comment.