Skip to content

Commit

Permalink
add drinks
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Aug 19, 2023
1 parent ec0333d commit 23d1a35
Show file tree
Hide file tree
Showing 40 changed files with 40 additions and 39 deletions.
Binary file added public/assets/drink/berlin.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/boulevardier.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/bourbon-bash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/clark-old-fashioned.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/cosmopolitan.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/hotel-georgia.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/la-louisiane.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/london-gypsy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/lucien-gaudin.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/martinez.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/drink/martini.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/trinidad-sour.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/vieux-carre.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/whiskey-daisy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/whiskey-smash.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/drink/wisconsin-old-fashioned.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"sticky_header": false,
"theme_switcher": true,
"default_theme": "system",
"pagination": 4,
"blog_pagination": 4,
"drink_pagination": 6,
"summary_length": 200,
"blog_folder": "blog",
"drink_folder": "drink"
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/content/drink/berlin.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Berlin?
title: Berlin
meta_title: Berlin
author: Reed Nelson
draft: true
draft: false
description: Berlin recipe.
image: /assets/drink/.jpg
image: /assets/drink/berlin.jpg

spirits: [whiskey]
bottles: [sweet-vermouth, benedictine]
Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/boulevardier.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Boulevardier
meta_title: Boulevardier
author: Reed Nelson
draft: true
draft: false
description: Boulevardier recipe.
image: /assets/drink/boulevardier.jpg

Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/bourbon-bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Bourbon Bash
meta_title: Bourbon Bash
author: Reed Nelson
draft: true
draft: false
description: Bourbon Bash recipe.
image: /assets/drink/bourbon-bash.jpg

Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/clark-old-fashioned.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Clark Old Fashioned
meta_title: Clark Old Fashioned
author: Reed Nelson
draft: true
draft: false
description: Clark Old Fashioned recipe.
image: /assets/drink/clark-old-fashioned.jpg

Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/cosmopolitan.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Cosmopolitan
meta_title: Cosmopolitan
author: Reed Nelson
draft: true
draft: false
description: Cosmopolitan recipe.
image: /assets/drink/cosmopolitan.jpg

Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/hotel-georgia.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Hotel Georgia
meta_title: Hotel Georgia
author: Reed Nelson
draft: true
draft: false
description: Hotel Georgia recipe.
image: /assets/drink/hotel-georgia.jpg

Expand Down
4 changes: 2 additions & 2 deletions src/content/drink/improved-japanese-cocktail.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
title: Improved Japanese Cocktail
meta_title: Improved Japanese Cocktail
author: Reed Nelson
draft: true
draft: false
description: Improved Japanese Cocktail recipe.
image: /assets/drink/improved-japanese-cocktail.jpg

spirits: [brandy]
bottles: [peychauds]
tags: [tag]
tags: []

ingredients:
list:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: De La Louisiane
meta_title: De La Louisiane
title: La Louisiane
meta_title: La Louisiane
author: Reed Nelson
draft: true
description: De La Louisiane recipe.
image: /assets/drink/de-la-louisiane.jpg
draft: false
description: La Louisiane recipe.
image: /assets/drink/la-louisiane.jpg

spirits: [whiskey]
bottles: [peychauds, sweet-vermouth, benedictine, absinthe]
Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/london-gypsy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: London Gypsy
meta_title: London Gypsy
author: Reed Nelson
draft: true
draft: false
description: London Gypsy recipe.
image: /assets/drink/london-gypsy.jpg

Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/lucien-gaudin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Lucien Gaudin
meta_title: Lucien Gaudin
author: Reed Nelson
draft: true
draft: false
description: Lucien Gaudin recipe.
image: /assets/drink/lucien-gaudin.jpg

Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/martinez.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Martinez
meta_title: Martinez
author: Reed Nelson
draft: true
draft: false
description: Martinez recipe.
image: /assets/drink/martinez.jpg

Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/trinidad-sour.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Trinidad Sour
meta_title: Trinidad Sour
author: Reed Nelson
draft: true
draft: false
description: Trinidad Sour recipe.
image: /assets/drink/trinidad-sour.jpg

Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/vieux-carre.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Vieux Carré
meta_title: Vieux Carré
author: Reed Nelson
draft: true
draft: false
description: Carré recipe.
image: /assets/drink/vieux-carre.jpg

Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/whiskey-daisy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Whiskey Daisy
meta_title: Whiskey Daisy
author: Reed Nelson
draft: true
draft: false
description: Whiskey Daisy recipe.
image: /assets/drink/whiskey-daisy.jpg

Expand Down
2 changes: 1 addition & 1 deletion src/content/drink/whiskey-smash.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Whiskey Smash
meta_title: Whiskey Smash
author: Reed Nelson
draft: true
draft: false
description: Whiskey Smash recipe.
image: /assets/drink/whiskey-smash.jpg

Expand Down
6 changes: 3 additions & 3 deletions src/content/drink/wisconsin-old-fashioned.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
title: Wisconsin Old Fashioned
meta_title: Wisconsin Old Fashioned
author: Reed Nelson
draft: true
draft: false
description: Wisconsin Old Fashioned recipe.
image: /assets/drink/wisconsin-old-fashioned.jpg

spirits: [brandy]
bottles: [ango, bottle2]
tags: [tag1, tag2]
bottles: [ango]
tags: [classic]

ingredients:
list:
Expand Down
4 changes: 2 additions & 2 deletions src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const allCategories = await getAllTaxonomy(blog_folder, "categories");
const categories = await getTaxonomy(blog_folder, "categories");
const tags = await getTaxonomy(blog_folder, "tags");
const sortedPosts = sortByDate(posts);
const totalPages: number = Math.ceil(posts.length / config.settings.pagination);
const currentPosts = sortedPosts.slice(0, config.settings.pagination);
const totalPages: number = Math.ceil(posts.length / config.settings.blog_pagination);
const currentPosts = sortedPosts.slice(0, config.settings.blog_pagination);
---

<Base
Expand Down
8 changes: 4 additions & 4 deletions src/pages/blog/page/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const allCategories = await getAllTaxonomy(blog_folder, "categories");
const categories = await getTaxonomy(blog_folder, "categories");
const tags = await getTaxonomy(blog_folder, "tags");
const sortedPosts = sortByDate(posts);
const totalPages = Math.ceil(posts.length / config.settings.pagination);
const totalPages = Math.ceil(posts.length / config.settings.blog_pagination);
const currentPage = slug && !isNaN(Number(slug)) ? Number(slug) : 1;
const indexOfLastPost = currentPage * config.settings.pagination;
const indexOfFirstPost = indexOfLastPost - config.settings.pagination;
const indexOfLastPost = currentPage * config.settings.blog_pagination;
const indexOfFirstPost = indexOfLastPost - config.settings.blog_pagination;
const currentPosts = sortedPosts.slice(indexOfFirstPost, indexOfLastPost);
export async function getStaticPaths() {
const posts = await getSinglePage(config.settings.blog_folder);
const totalPages = Math.ceil(posts.length / config.settings.pagination);
const totalPages = Math.ceil(posts.length / config.settings.blog_pagination);
const paths = [];
for (let i = 1; i < totalPages; i++) {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/drink/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const allBottles = await getAllTaxonomy(drink_folder, "bottles");
const bottles = await getTaxonomy(drink_folder, "bottles");
const tags = await getTaxonomy(drink_folder, "tags");
const sortedPosts = sortByDate(posts);
const totalPages: number = Math.ceil(posts.length / config.settings.pagination);
const currentPosts = sortedPosts.slice(0, config.settings.pagination);
const totalPages: number = Math.ceil(posts.length / config.settings.drink_pagination);
const currentPosts = sortedPosts.slice(0, config.settings.drink_pagination);
---

<Base
Expand Down
8 changes: 4 additions & 4 deletions src/pages/drink/page/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ const allBottles = await getAllTaxonomy(drink_folder, "bottles");
const bottles = await getTaxonomy(drink_folder, "bottles");
const tags = await getTaxonomy(drink_folder, "tags");
const sortedPosts = sortByDate(posts);
const totalPages = Math.ceil(posts.length / config.settings.pagination);
const totalPages = Math.ceil(posts.length / config.settings.drink_pagination);
const currentPage = slug && !isNaN(Number(slug)) ? Number(slug) : 1;
const indexOfLastPost = currentPage * config.settings.pagination;
const indexOfFirstPost = indexOfLastPost - config.settings.pagination;
const indexOfLastPost = currentPage * config.settings.drink_pagination;
const indexOfFirstPost = indexOfLastPost - config.settings.drink_pagination;
const currentPosts = sortedPosts.slice(indexOfFirstPost, indexOfLastPost);
export async function getStaticPaths() {
const posts = await getSinglePage(config.settings.drink_folder);
const totalPages = Math.ceil(posts.length / config.settings.pagination);
const totalPages = Math.ceil(posts.length / config.settings.drink_pagination);
const paths = [];
for (let i = 1; i < totalPages; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/drink/tags/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const allTags = await getAllTaxonomy(drink_folder, "tags");
return (
<li class="m-3 inline-block">
<a
href={`/blog/tags/${tag}`}
href={`/drink/tags/${tag}`}
class="block rounded bg-theme-light px-4 py-2 text-xl text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark"
>
{tag}{" "}
Expand Down

0 comments on commit 23d1a35

Please sign in to comment.